On Fri, Jan 02, 2004 at 11:03:25AM -0600, John Hunter wrote:
> I modified some old pygtk-1 code I found for adding an pixmap to a
> button, but the image doesn't display correctly in the button
Not sure what "correctly" means in the context, but..
> box = gtk.HBox(spacing=0)
> box.pack_start(pixmap, gtk.FALSE, gtk.FALSE, 0)
-- shouldn't you be tweaking expand here..
>
> if orientation in ('left', 'top'):
> box.pack_start(pixmap, gtk.FALSE, gtk.FALSE, 0)
> box.pack_start(label, gtk.FALSE, gtk.FALSE, 0)
> elif orientation in ('right', 'bottom'):
> box.pack_start(label, gtk.FALSE, gtk.FALSE, 0)
> box.pack_start(pixmap, gtk.FALSE, gtk.FALSE, 0)
Or here?
Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/