| advertise add site services publishers database health videos | ![]() | about toolbar stats live show health store more stuff JOIN/LOGIN |
PyGTK is graphical user interface for creating programs, consisting of a set of Python wrappers for the GTK+ GUI library. PyGTK is free software and licensed under the LGPL. Other popular alternatives are PyQt and wxPython. Its original author is the prominent GNOME developer James Henstridge. Today there are six people in the core development team, with various other people who have submitted patches and bug reports. PyGTK has been selected as the environment of choice for applications running on the One Laptop Per Child systems. Developers and interested parties can usually be found on the IRC channel #pygtk on irc.gnome.org.
[edit] SyntaxThe code below will produce a 200x200 pixel window with the words "Hello World" inside. import gtk def create_window(): window = gtk.Window() window.set_default_size(200, 200) window.connect('destroy', gtk.main_quit) label = gtk.Label('Hello World') window.add(label) label.show() window.show() create_window() gtk.main() [edit] Notable applications that use PyGTKPyGTK has been used in a number of notable applications, some examples:
[edit] References
[edit] See also[edit] External links |
| ↑ top of page ↑ | about thumbshots |