wiki:EnhancingTheGuiOfNicotine

Enhancing The GUI of Nicotine

Nicotine's GUI is a slightly complex beast.The majority of widgets are generated from a [Glade-2  http://glade.gnome.org/download.html] XML file with the glade2py.py script. The nicotine_glade.py and settings_glade.py should not be edited by hand. If the glade2py.py script doesn't support some gtk widget, you'll either need to edit glade2py to add the widget creation function, or add it by hand to the associated python file. Many of these widgets have options defined in XML file, but others do not and those widgets' options are also defined in the various other python files in the gtkgui directory.

Note Books

Notebooks use a special wrapper called IconNotebook. You'll find it in gtkgui/utils.py. It uses a label wrapper than includes a Text Label, an Icon and an optional Close button.

List Columns

ListView and TreeView columns are most easily created with InitialiseColumns function also found in gtkgui/utils.py. """Example"""

 [_("Users"), -1, "text"],
Column Name, Width, Renderer

"text" is CellRendererText "progress" is CellRendererProgress anything else is CellRendererPixbuf