On Tue, Nov 05, 2002 at 05:20:31PM +0800, James Henstridge wrote:
What's the clean way to get two small (preferably inlined) images and
swap them back and forth into a togglebutton?
You can set a gtk.Image widget to display a pixmap (like the gtk.Pixmap
widget can) using its
george young wrote:
[gtk+-2.1.1, pygtk-1.99.13, python-2.2.1]
Under gtk 1.x, I had been using something like:
class Openclose(gtk.GtkToggleButton):
...
minus_xpm_d = [11 11 2 1,
. c #00,
...
###]
self.minus = gtk.create_pixmap_from_xpm_d(topwin.get_window(), None,
[gtk+-2.1.1, pygtk-1.99.13, python-2.2.1]
Under gtk 1.x, I had been using something like:
class Openclose(gtk.GtkToggleButton):
...
minus_xpm_d = [11 11 2 1,
. c #00,
...
###]
self.minus = gtk.create_pixmap_from_xpm_d(topwin.get_window(), None,