[pygtk] get_widget_prefix and filling widgets from database...

2002-11-19 Thread René Olsthoorn
Title: get_widget_prefix and filling widgets from database... Dear list-reader, I've several widgets which need to be filled with contents from the database. So, I want to link a table- and columnname with several widgets. The easiest way to do that seems to me a encoding in the widgetname.

[pygtk] get_widget_prefix and filling widgets from database...

2002-11-19 Thread Rene Olsthoorn
(Sorry, my first mail contained HTML) Dear list-reader, I've several widgets which need to be filled with contents from the database. So, I want to link a table- and columnname with several widgets. The easiest way to do that seems to me a encoding in the widgetname. So a widgetname like

Re: [pygtk] get_widget_prefix and filling widgets from database...

2002-11-19 Thread James Henstridge
Rene Olsthoorn wrote: (Sorry, my first mail contained HTML) Dear list-reader, I've several widgets which need to be filled with contents from the database. So, I want to link a table- and columnname with several widgets. The easiest way to do that seems to me a encoding in the widgetname. So a

Re: [pygtk] migration from 0.6.9 to 1.99.13

2002-11-19 Thread Christian Reis
This whole exchange became 3 new points in FAQ 2.3 On Tue, Nov 19, 2002 at 11:04:48AM +0800, James Henstridge wrote: John Hunter wrote: Johan == Johan Dahlin [EMAIL PROTECTED] writes: Johan gc.set_clip_rectangle((self._left, self._top, self._width, Johan

Re: [pygtk] pygtk Gnome2 errors

2002-11-19 Thread Christian Reis
/me points out FAQ 22.4 and does an emit(RTFM) ;) On Mon, Nov 18, 2002 at 11:50:47PM +0800, James Henstridge wrote: Jay Graves wrote: Hello I wrote a while ago with this problem, but I didn't have my system configured properly. Now I believe I do, and the problem still exists. I am

Re: [pygtk] ANNOUNCE: Bonobo-Tutorial

2002-11-19 Thread Christian Reis
On Wed, Nov 13, 2002 at 03:28:10PM +0100, Martin Grimme wrote: It is available at: http://www.pycage.de/howto_bonobo.html Added to FAQ 1.9 Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL

Re: [pygtk] Hiding and showing dialogs using libglade

2002-11-19 Thread Christian Reis
On Wed, Nov 13, 2002 at 07:53:25PM +0100, Åsmund Skjæveland wrote: 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

Re: [pygtk] auto-expansion of gtk.Entry?

2002-11-19 Thread Christian Reis
On Thu, Nov 14, 2002 at 03:16:24PM -0500, george young wrote: I would like to have a gtk.Entry (for data entry) that is first presented with a default width, but will dynamically expand as the user types more text than fits. I suppose this will cause ripples of This is such an ugly

Re: [pygtk] auto-expansion of gtk.Entry?

2002-11-19 Thread Jon Nelson
Actually, because I'm jumping into the middle here, try this: get a font (from a style perhaps) get some text call font.width(text) tada! also see font.height(text) I wrote this to dynamically adjust a GtkText widget: def calculate_max_text_width(self, text, font): max_ = 0 lines =

Re: [pygtk] auto-expansion of gtk.Entry?

2002-11-19 Thread george young
On Tue, 19 Nov 2002 09:25:41 -0600 Jon Nelson [EMAIL PROTECTED] wrote: Actually, because I'm jumping into the middle here, try this: get a font (from a style perhaps) get some text call font.width(text) tada! also see font.height(text) Umm, I think this is code for gtk-1.x, it doesn't

Re: [pygtk] get_widget_prefix and filling widgets from database...

2002-11-19 Thread Rene Olsthoorn
Dear James, Thanks for your reply and actions in CVS. For your information: I noticed that the 1.99.13 version does have the get_widget_prefix in the libglade.defs, but that function does not go into the libglade.c when making So, I checked out the sources from CVS, but now I notice that

Re: [pygtk] get_widget_prefix and filling widgets from database...

2002-11-19 Thread Christian Reis
On Tue, Nov 19, 2002 at 03:54:39PM -0500, Rene Olsthoorn wrote: Dear James, Thanks for your reply and actions in CVS. For your information: I noticed that the 1.99.13 version does have the get_widget_prefix in the libglade.defs, but that function does not go into the libglade.c when