[pygtk] FontSelection set_font_name() returns false on valid name

2004-10-18 Thread Jamie Norrish
When passing the font name returned by gtk.FontSelection's get_font_name to set_font_name, that method always returns False and the font is not set in the selection. The font name is valid, and the font specified is available on the system (having selected it, it is used in displaying text). This

Re: [pygtk] I must be missing something - can't get label of a menu item

2004-10-18 Thread Christian Robottom Reis
On Fri, Oct 15, 2004 at 09:51:49PM -0500, Skip Montanaro wrote: Christian One alternative which I use daily is, instead of relying on Christian the label, doing a set_data() on the menuitems as you put Christian them into the menu, and then using get_data() to grab it Christian

[pygtk] how to map modifier keys to bits in modifier masks?

2004-10-18 Thread Skip Montanaro
In the docs for gtk.gdk.Event the description of MOD1_MASK reads: gtk.gdk.MOD1_MASK The fourth modifier key (it depends on the modifier mapping of the X server which key is interpreted as this modifier, but normally it is the Alt key). How

[pygtk] glade and new gtk+ actions

2004-10-18 Thread Stephen Kennedy
Is anybody using the new UIManager/Actions with glade? It seems like a shame to have to type xml and attach it manually when glade has such a nice menu and toolbar editor. Stephen. -- Stephen Kennedy [EMAIL PROTECTED] http://meld.sf.net visual diff and merge

Re: [pygtk] FontSelection set_font_name() returns false on valid name

2004-10-18 Thread Jamie Norrish
John Finlay writes: It needs to be added to a window before the font lists are populated. Ah, thank you! I had tried calling the method after it had been added to its container (which is not a window), but not after the container had been added to the window. Jamie -- Artefact Publishing:

[pygtk] Alignment scale

2004-10-18 Thread Gustavo Niemeyer
Hello folks, I've noticed that the default values for xscale and yscale in gtk.Alignment have recently been changed from 0.0 to 1.0: import gtk align = gtk.Alignment() align.get_property(xscale) 1.0 align.get_property(yscale) 1.0 Documentation is still pointing out that both

Re: [pygtk] I must be missing something - can't get label of a menu item

2004-10-18 Thread Gustavo J. A. M. Carneiro
Seg, 2004-10-18 às 14:55 -0300, Christian Robottom Reis escreveu: On Fri, Oct 15, 2004 at 11:04:39PM +0100, Gustavo J. A. M. Carneiro wrote: Johan's suggested the FAQ, and that's full of warnings that should be heeded. One alternative which I use daily is, instead of relying on the

Re: [pygtk] I must be missing something - can't get label of a menu item

2004-10-18 Thread Christian Robottom Reis
On Mon, Oct 18, 2004 at 07:15:32PM +0100, Gustavo J. A. M. Carneiro wrote: It's just that you have to get the selected menu item first, only then get_data. It forces you to understand the internal structure of the option menu to get to the selected menu item. Well, isn't it just a matter

Re: [pygtk] output gtk.TextView

2004-10-18 Thread Marcus Habermehl
Am Sonntag, den 17.10.2004, 16:36 -0500 schrieb Skip Montanaro: Marcus I want to execute some shell commands in my python script. The Marcus output should be redirected to a gtk.TextView in real-time. How Marcus can I do this? Use os.popen or one of its cousins, capture the

[pygtk] Re: glade and new gtk+ actions

2004-10-18 Thread Johan Dahlin
On Mon, 18 Oct 2004 11:50:12 +0100, Stephen Kennedy wrote: Is anybody using the new UIManager/Actions with glade? It seems like a shame to have to type xml and attach it manually when glade has such a nice menu and toolbar editor. You should look at gazpacho, which has an editor for

Re: [pygtk] I must be missing something - can't get label of a menu item

2004-10-18 Thread Christian Robottom Reis
On Fri, Oct 15, 2004 at 11:04:39PM +0100, Gustavo J. A. M. Carneiro wrote: Johan's suggested the FAQ, and that's full of warnings that should be heeded. One alternative which I use daily is, instead of relying on the label, doing a set_data() on the menuitems as you put them into the menu,