Matthew Boedicker wrote:

>Hello,
>
>I'm trying to put horizontal separators in a menu.  I tried appending a
>GtkHSeparator() to the menu, but it didn't work.  Can't seem to find anything
>in the docs or examples.  Can someone point me in the right direction?
>  
>
To get a separator, simply create an empty menu item (ie. one that 
doesn't contain a GtkLabel widget):
  separator = gtk.GtkMenuItem()

Many people seemed to overlook this, so in gtk 2.0 there is a 
GtkSeparatorMenuItem widget, which adds no functionality over GtkMenuItem :)
  separator = gtk.SeparatorMenuItem()

James.

-- 
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/




_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to