The PyGTK module contains various widgets. gtk.Object class acts as the base class for most of the widgets as well as for some non-widget classes. The toplevel window for desktop applications using PyGTK is provided by gtk.Window class. The following table lists the important widgets and their functions −
|S.NO||Classes and Description|
This is a gtk.base class for all PyGTK widgets. gtk.Widget provides a common set of methods and signals for the widgets.
This is a toplevel window that holds one child widget. gtk.Window is a display area decorated with a title bar, and items to allow the user to close, resize and move the window.
This is a pushbutton widget that issues a signal when clicked. gtk.Button is usually displayed as a pushbutton with a text label and is generally used to attach a callback function.
This is a single line text entry widget.
This widget displays a limited amount of read-only text.
This is a base class for widgets that contains multiple buttons.
This is a container that organizes its child widgets into a single horizontal row.
This is a container that organizes its child widgets into a single column.
This is a container that can place child widgets at fixed positions and with fixed sizes, given in pixels.
This provides infinite scrollable area containing child widgets and custom drawing.
This widget implements the appearance and behavior of menu items. The derived widget subclasses of the gtk.MenuItem are the only valid children of menus. When selected by a user, they can display a popup menu or invoke an associated function or method
This is a dropdown menu consisting of a list of MenuItem objects which can be navigated and activated by the user to perform application functions.
This displays the menu items horizontally in an application window or dialog.
This widget is used to choose from a list of items.
This is a horizontal or vertical slider control to select a numeric value.
This displays a horizontal or vertical scrollbar.
This is used to display the progress of a long running operation.
This displays a popup window for user information and action.
This widget is a container whose children are overlapping pages that can be switched between using tab labels.
This is a base class for widgets with two panes, arranged either horizontally or vertically. Child widgets are added to the panes of the widget. The division between the two children can be adjusted by the user.
This widget displays the contents of a TextBuffer object.
This container holds and manages a set of buttons and widgets in a horizontal or vertical bar.
This widget displays the contents of standard TreeModel (ListStore, TreeStore, TreeModelSort)
This widget helps in creating custom user interface elements. gtk.DrawingArea is essentially a blank widget containing a window that you can draw on.
This widget displays a calendar and allows the user to select a date.
This widget displays a portion of a larger widget.