Package zeroinstall :: Package gtkui :: Module gtkutils
[frames] | no frames]

Module gtkutils

source code

Useful utility methods for GTK.

Classes
  Template
Wrapper for GtkBuilder widget tree that throws a sensible exception if the widget isn't found.
Functions
 
show_message_box(parent, message, type=gtk.MESSAGE_ERROR)
Display a non-modal message box with an OK button.
source code
gdk.Cursor
get_busy_pointer()
Get a GDK background-activity cursor.
source code
Function Details

show_message_box(parent, message, type=gtk.MESSAGE_ERROR)

source code 

Display a non-modal message box with an OK button.

Parameters:
  • parent - the parent window
  • message - the message to be displayed
  • type - the type of box (used for the icon)

get_busy_pointer()

source code 

Get a GDK background-activity cursor. Use this when something is happening, but the GUI is still responsive.

Returns: gdk.Cursor
the busy cursor (a singleton)