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.
  DialogResponse
Triggers when the GtkDialog gets a response.
  ButtonClickedBlocker
Triggers when the GtkButton is activated.
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
 
MixedButton(message, stock, x_align=0.5, button=None)
A GtkButton with a stock icon.
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)

MixedButton(message, stock, x_align=0.5, button=None)

source code 

A GtkButton with a stock icon.

Since: 1.5