Re: [pygtk] feature request: binding for gtk_propagate_event?
On Wed, Nov 13, 2002 at 03:35:42PM +0800, James Henstridge wrote: A single signal emission will only call handlers attached to the object it was emitted on. The propagation of events up the heirachy is acheived by emitting the signal a number of times. For events such as the button presses and motion events, the event is delivered first to the widget the event occurred in. It will emit the appropriate event signal. If the event signal returns false (indicating that the event hasn't been handled), then a signal will be emitted on the parent. This continues all the way up to the toplevel if no one handles the event. Keyboard events are handled differently. When your window receives a keyboard event, it is first dispatched to the toplevel window, which will check if it matches any keyboard shortcuts. If the key press doesn't match a shortcut, then the event is dispatched to the child widget that currently has focus. - FAQ 3.11. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
Re: [pygtk] setting font for gtk.Entry?
On Wed, Nov 13, 2002 at 03:54:13PM +0800, James Henstridge wrote: george young wrote: [pygtk-1.99.13, gtk-2.1.1, python-2.2.1, linux] I am just trying to set the font for a gtk.Entry. I tried: import gtk top = gtk.Window(gtk.WINDOW_TOPLEVEL) top.show() e = gtk.Entry() sty = e.get_style().copy() sty.font = gtk.load_font('fixed') e.set_style(sty) e.set_text('the rain') e.show() top.add(e) gtk.mainloop() but the font I get is some default, variable width font. What am I doing wrong? [I *have* scoured the FAQ and mailing list archives...] GTK 2.0 uses a new text layout system called Pango, which is why the old method of changing the font does not work. If you want to change an entry field to a monospaced font, use the following: font_desc = pango.FontDescription('monospace') entry.modify_font(font_desc) Whoa. Does this mean that the old commands *still work*, but produce old results? George? Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
[pygtk] ANNOUNCE: Bonobo-Tutorial
Hi, I have written a little tutorial about using Bonobo with gnome-python for GNOME 2. Maybe this can help some people to get started with Bonobo. It is available at: http://www.pycage.de/howto_bonobo.html Have fun! Martin Grimme - http://www.pycage.de ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
[pygtk] Hiding and showing dialogs using libglade
I'm writing an offliner (like a newsreader, only for BBS use) using pygtk and libglade. I'm trying to find the right way to show and hide a file selection dialog after a load file buton has been clicked. Should I use a direct widget approach (i.e. create a separate XML tree, use selectFile = SelectFileTree.get_widget('SelectFile') and selectFile.show()), or is there a more automatic way to do this (i.e. call the widget's show() and hide()) with libglade, without pulling out the widget from the XML tree? -- Åsmund Skjæveland (OpenPGP keyid 54B975CE) msg04806/pgp0.pgp Description: PGP signature
Re: [pygtk] ANNOUNCE: Bonobo-Tutorial
On Wed, Nov 13, 2002 at 03:28:10PM +0100, Martin Grimme wrote: I have written a little tutorial about using Bonobo with gnome-python for GNOME 2. Maybe this can help some people to get started with Bonobo. It is available at: http://www.pycage.de/howto_bonobo.html Nice stuff. :-) Malcolm -- What if there were no hypothetical questions? ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/