Post thumbnail of Capture Right Click events in pygtk
27 July 2011
Continue reading Capture Right Click events in pygtk

Capture Right Click events in pygtk

If you pass in the event when you enter a callback, you can look at event.type to determine which button was pushed and process the action accordingly. Make sure to check the event.type first for a button press as not all events will define an event.button.

Post thumbnail of Generate python code from Glade XML files
22 April 2010
Continue reading Generate python code from Glade XML files

Generate python code from Glade XML files

Why can’t I find a code generator that works? Tepache is a code sketcher for python that uses pygtk and glade, but it is broken and it looks like it hasn’t been updated since July 2005 anyway. Gladex was broken out of the box. Autocode does not like my glade and the documentation is limited.

Post thumbnail of System-config-firewall: GUI for configuring Fedora’s iptables
16 November 2009
Continue reading System-config-firewall: GUI for configuring Fedora’s iptables

System-config-firewall: GUI for configuring Fedora’s iptables

I still prefer a flat ascii file either loading the rules one at a time, or the built in iptables save/restore which basically does the same thing. But if you like/want/need a GUI application, then skip the lokkit firewall configuration tool in favor of system-config-firewall. It makes configuration of your firewall as easy as the simple Windows firewall, but with the option detail you expect from Linux.

Post thumbnail of TKinter GUI demo for python
9 January 2009
Continue reading TKinter GUI demo for python

TKinter GUI demo for python

A simple Tkinter demo to display a window with some buttons on it for a front end installer app. The buttons just quit in this example, but you can see the event handlers towards the bottom that would make it easy to tweak. I’m still looking for a …

Powered by Wordpress   |   Lunated designed by ZenVerse