[pygtk] [ANNOUNCE] PyGtkSourceView 2.7.0 - unstable

2009-08-17 Thread Gian Mario Tagliaretti
I am pleased to announce version 2.7.0 of the Gtksourceview Python bindings. Once the mirrors have sync correctly it will be available at: http://ftp.gnome.org/pub/GNOME/sources/pygtksourceview/2.7/ The bindings are updated with the new Gtksourceview API News in 2.7.0 = o Add n

Re: [pygtk] Adding and deleting items from a menu

2009-08-17 Thread saeed
Any Widget needs to be called show() to be shown and updated in the GUI. For a Container, you can also use show_all() method to show all of it's children. Then in this case, you need call show() for the new menu item, or call show_all() for the menu itself. You can see all methods and features of

Re: [pygtk] Adding and deleting items from a menu

2009-08-17 Thread Fabrice DELENTE
> This is not a real answer to your question, but I have been fighting with > menus till I took the time to read UIManager Interfaces that really makes > working with menus much simpler and more reasonable. I'll look into that, thanks. Is it compatible with glade (because I designed my interface w

Re: [pygtk] Adding and deleting items from a menu

2009-08-17 Thread Alessandro Dentella
On Mon, Aug 17, 2009 at 10:54:06AM +0200, Fabrice DELENTE wrote: > Hello. > > I'm trying to dynamically add and delete items from a drop-down menu-bar. > > My code is: > > self.wTree=gtk.glade.XML(gladeFile,"window1") > self.menuFichier=self.wTree.get_widget("menu1") > entree=gtk.MenuItem("some

[pygtk] Adding and deleting items from a menu

2009-08-17 Thread Fabrice DELENTE
Hello. I'm trying to dynamically add and delete items from a drop-down menu-bar. My code is: self.wTree=gtk.glade.XML(gladeFile,"window1") self.menuFichier=self.wTree.get_widget("menu1") entree=gtk.MenuItem("some text") self.menuFichier.insert(entree,5) and I expect to see "some text" as the 6t

Re: [pygtk] Pixmap, DrawingArea, Viewport, Scrolledwindow

2009-08-17 Thread A.T.Hofkamp
Nick Peters wrote: > A.T.Hofkamp wrote: >> Nick Peters wrote: >> >>> if response == gtk.RESPONSE_OK: >>> print open_dialog.get_filename(), 'selected' >>> #load the Image the user selected. >>> rpg_map = >>> gtk.gdk.pixbuf_new_from_file(open_dialog.get_fil