| |
- exceptions.Exception(exceptions.BaseException)
-
- UserAbort
- gtk.Button(gtk.Bin, gtk.gtk.Activatable)
-
- ButtonMixed
- gtk.Dialog(gtk.Window)
-
- Dialog
- gtk.StatusIcon(gobject._gobject.GObject)
-
- StatusIcon
- gtk.Window(gtk.Bin)
-
- Window
class ButtonMixed(gtk.Button) |
|
A button with a standard stock icon, but any label. This is useful
when you want to express a concept similar to one of the stock ones. |
|
Methods defined here:
- __init__(self, stock, message)
- Specify the icon and text for the new button. The text
may specify the mnemonic for the widget by putting a _ before
the letter, eg:
button = ButtonMixed(g.STOCK_DELETE, '_Delete message').
|
class Dialog(gtk.Dialog) |
|
This works in exactly the same way as a GtkDialog, except that
it calls the toplevel_(un)ref functions for you automatically. |
|
Methods defined here:
- __init__(*args, **kwargs)
|
class StatusIcon(gtk.StatusIcon) |
|
Wrap GtkStatusIcon to call toplevel_(un)ref functions for
you. Calling toplevel_unref isn't automatic, because a
GtkStatusIcon is not a GtkWidget.
GtkStatusIcon was added in GTK+ 2.10, so you will need
pygtk 2.10 or later to use this class. Check by using
import rox
if hasattr(rox, 'StatusIcon'):
.... |
|
Methods defined here:
- __init__(self, add_ref=True, menu=None, show=True, icon_pixbuf=None, icon_name=None, icon_stock=None, icon_file=None)
- Initialise the StatusIcon.
add_ref - if True (the default) call toplevel_ref() for
this icon and toplevel_unref() when removed. Set to
False if you want the main loop to finish if only the
icon is present and no other windows
menu - if not None then this is the menu to show when
the popup-menu signal is received. Alternatively
add a handler for then popup-menu signal yourself for
more sophisticated menus
show - True to show them icon initially, False to start
with the icon hidden.
icon_pixbuf - image (a gdk.pixbuf) to use as an icon
icon_name - name of the icon from the current icon
theme to use as an icon
icon_stock - name of stock icon to use as an icon
icon_file - file name of the image to use as an icon
The icon used is selected is the first of
(icon_pixbuf, icon_name, icon_stock, icon_file) not
to be None. If no icon is given, it is taken from
$APP_DIR/.DirIcon, scaled to 22 pixels.
NOTE: even if show is set to True, the icon may not
be visible if no system tray application is running.
- popup_menu(self, icon, button, act_time)
- Show the default menu, if one was specified
in the constructor.
- remove_icon(self)
- Hides the icon and drops the top level reference,
if it was holding one. This may cause the main loop
to exit.
|
class Window(gtk.Window) |
|
This works in exactly the same way as a GtkWindow, except that
it calls the toplevel_(un)ref functions for you automatically,
and sets the window icon to <app_dir>/.DirIcon if it exists. |
|
Methods defined here:
- __init__(*args, **kwargs)
| |