Re: [pygtk] Simple question on reusing stock item

2009-02-09 Thread Alessandro Dentella
On Mon, Feb 09, 2009 at 02:24:35PM +, Amondo Roquentin wrote: > John Finlay wrote: > > > A MenuItem is a Container so you can add anything to it. In your case > > create an empty MenuItem and add an HBox containing an Image and a Label. > > Is there a policy on the spacing to apply to HBoxes

Re: [pygtk] Simple question on reusing stock item - SOLVED

2009-02-09 Thread Alessandro Dentella
On Mon, Feb 09, 2009 at 02:04:24AM -0800, John Finlay wrote: > Alessandro Dentella wrote: > > Hi, > > > > i'd like to use stock item in menu entries with modified labels to better > > suit context. > > > > * MenuItem doesn't allow to use images (reasonable) > > * ImageMenuItem doesn't app

Re: [pygtk] Simple question on reusing stock item

2009-02-09 Thread Amondo Roquentin
John Finlay wrote: > A MenuItem is a Container so you can add anything to it. In your case > create an empty MenuItem and add an HBox containing an Image and a Label. Is there a policy on the spacing to apply to HBoxes in this circumstance? For example, should the spacing be zero or a fixed numbe

[pygtk] reply address for this list

2009-02-09 Thread Alessandro Dentella
Hi, I found mysel many times answering to the original author rather than to the list. I think that this doesn't only happen to me as is pretty normal for public mailing list to have reply address set to the list. I think this is inconvenient as many answers of public interest don't arr

Re: [pygtk] segmentation fault with gtk.Notebook

2009-02-09 Thread Amondo Roquentin
Gian Mario Tagliaretti wrote: > Your snippet works for me. > > cheers It worked for me too. May I suggest to check your bindings are compiled/installed okay. ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read th

[pygtk] Creating a subclass of gtk.Image

2009-02-09 Thread Graham Whelan
Hi, I'm trying to create a custom widget that inherits from gtk.Image but I'm having problems. When I add more than one of these widgets to a container, only the first widget is being rendered. My test case looks like this: import gtk, gobject class MyImage(gtk.Image): def __init__(self):

Re: [pygtk] segmentation fault with gtk.Notebook

2009-02-09 Thread Gian Mario Tagliaretti
On Mon, Feb 9, 2009 at 1:18 PM, Gaetano Guerriero wrote: Hi Gaetano, > import gtk > > window = gtk.Window() > box = gtk.HBox() > notebook = gtk.Notebook() > notebook.append_page(gtk.Label("!")) > box.add(notebook) > window.add(box) > window.show_all() > gtk.main() Your snippet works for me.

[pygtk] segmentation fault with gtk.Notebook

2009-02-09 Thread Gaetano Guerriero
Documentation says that since PyGTK 2.4 I can add a page to a gtk.Notebook with an empty label. Anyway this crash with segmentation fault. Am i missing something ? $ echo ' import gtk window = gtk.Window() box = gtk.HBox() notebook = gtk.Notebook() notebook.append_page(gtk.Label("!")) box.a

[pygtk] segmentation fault with gtk.Notebook

2009-02-09 Thread Gaetano Guerriero
Documentation says that since PyGTK 2.4 I can add a page to a gtk.Notebook with an empty label. Anyway this crash with segmentation fault. Am i missing something ? $ echo ' import gtk window = gtk.Window() box = gtk.HBox() notebook = gtk.Notebook() notebook.append_page(gtk.Label("!")) box.a

Re: [pygtk] Simple question on reusing stock item

2009-02-09 Thread John Finlay
Alessandro Dentella wrote: > Hi, > > i'd like to use stock item in menu entries with modified labels to better > suit context. > > * MenuItem doesn't allow to use images (reasonable) > * ImageMenuItem doesn't appearently allow to change label (really???) > > I think I could go with Icon