Re: [pygtk] - Callback problem]

2001-10-24 Thread Christian Robottom Reis
On Tue, 16 Oct 2001, Brice VISSIERE wrote: > Here are the warnings printed when i close the window > > Traceback (most recent call last): > File "/usr/lib/python2.0/site-packages/gtk.py", line 125, in __call__ > ret = apply(self.func, a) > TypeError: no arguments expected > > Other idea wit

Re: [pygtk] Kiwi 0.4.1 failing on libglade ...

2001-10-24 Thread Christian Robottom Reis
Sorry I took a while to answer, was travelling. On 21 Oct 2001, Bill Anderson wrote: > So, I downloaded Kiwi 0.4.1 to try it out, and I can not get the example > to work. I get the following traceback, which indicated a need for > libglade 0.16, which you will see, I have. Ideas appreciated. H

Re: [pygtk] How to use GnomeDialog from an applet

2001-10-24 Thread Christian Robottom Reis
On 23 Oct 2001, Akos Polster wrote: > This is what happens: I create a GnomeDialog with a Close button, > then call run_and_close. run_and_close returns when I press Close, > but the dialog, instead of being destroyed, stays on the screen, > and becomes unresponsive, together with the rest of the

Re: [pygtk] GtkCList and find_row_from_data()

2001-10-24 Thread Christian Robottom Reis
On 23 Oct 2001, Travis Hume wrote: > What should the data parameter to find_row_from_data() look like? The > clist has two columns and I also associate some additional data with > each row using set_row_data() Well, "data". Whatever you used to store in the row data. So if it's not working, it

Re: [pygtk] Patch to those who use glc.py (Python Glade Code Generator)

2001-10-24 Thread Christian Robottom Reis
On Mon, 22 Oct 2001, Russell Nelson wrote: > I agree that a) and b) are yucky. I much prefer: > c) using `make' to re-generate the code whenever you change > the .glade file, and never otherwise change the code. I guess... you have to rely on the generated code being good, of course

Re: [pygtk] GDK_SELECTION_PRIMARY

2001-10-24 Thread Christian Robottom Reis
On Mon, 22 Oct 2001, Jon Nelson wrote: > What I want to do is, when the appropriate menu entry is selected, > copy a line from a CList to the X clipboard. How do I do this? Uhm. So this has nothing to do with menus? You want to click on a clist row and have the line inserted into the X clipboar

Re: [pygtk] Another off-the-wall question

2001-10-24 Thread Christian Robottom Reis
On Thu, 25 Oct 2001, Malcolm Tredinnick wrote: > To answer your question: I started to put some together about three > weeks ago just for fun, but I've since been very sick and haven't looked > at them (or the approximately three dozen other GNOME things I'm meant > to be doing). With bonobo-pyt

Re: [pygtk] leave_notify event?

2001-10-24 Thread Christian Robottom Reis
On Thu, 25 Oct 2001, James Henstridge wrote: > >I have some text and entry widgets, and when the user changes the > >value in one of them and moves on to another widget in the GUI, > >I need to grab the changes and put them in the database. I have a Form widget I am cooking that will do exactly

[pygtk] FAQ call for PyGTK

2001-10-24 Thread Christian Robottom Reis
Hello python-gtk-ninjas, I'm volunteering to write a FAQ for pygtk and I'm rounding up questions (preferrably with answers) that have plagued the list frequently. To help me out, just reply to this message to me, personally, with a question [+ answer] to a common question. No need to spam the li

Re: [pygtk] Emitting signal

2001-10-24 Thread Christian Robottom Reis
On Sat, 13 Oct 2001, Arun wrote: > If its with emit function, what are the parameters other than the > signal name. Arguments to be passed as the signal's arguments. See gtk/gtk-signals.html in the gtk documentation. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Br

Re: [pygtk] leave_notify event?

2001-10-24 Thread James Henstridge
george young wrote: >[pygtk-0.6.6, gtk+-1.2.7, python 2.1, i86 linux 2.2.16] > >I have some text and entry widgets, and when the user changes the >value in one of them and moves on to another widget in the GUI, >I need to grab the changes and put them in the database. > >I've tried: >self.co

Re: [pygtk] Another off-the-wall question

2001-10-24 Thread Malcolm Tredinnick
On Wed, Oct 24, 2001 at 03:25:20PM -0400, Jason F. McBrayer wrote: > Hi. This is another off the wall question, and it'll probably get as > much attention as my question about gnome.triggers last week, but does > anyone know if anyone is working on Python bindings for GConf? Fairly off-topic for

[pygtk] GtkCList and find_row_from_data

2001-10-24 Thread Travis Hume
I'm trying to use the find_row_from_data() in GtkClist to determine if I should update a row or append a new one, but find_row_from_data() always returns a -1 (row not found). What should the data parameter to find_row_from_data() look like? The clist has two columns and I also associate some ad

[pygtk] GtkClist and find_row_from_data

2001-10-24 Thread Travis Hume
I'm trying to use the find_row_from_data() in GtkClist to determine if I should update a row or append a new one, but find_row_from_data() always returns a -1 (row not found). What should the data parameter to find_row_from_data() look like? The clist has two columns and I also associate some ad

Re: [pygtk] how to sort properly by column and display right-justifiedtext?

2001-10-24 Thread Christian Robottom Reis
On Wed, 24 Oct 2001, Alexandre Fayolle wrote: > I used to have the same problem. The gtk function > gtk_clist_set_comare_func() is not mapped into pygtk (at least not in the > version I have, which is 0.6.6). I did a lovely hack in Kiwi and I remove and reinsert every item into the list. Sound e

[pygtk] leave_notify event?

2001-10-24 Thread george young
[pygtk-0.6.6, gtk+-1.2.7, python 2.1, i86 linux 2.2.16] I have some text and entry widgets, and when the user changes the value in one of them and moves on to another widget in the GUI, I need to grab the changes and put them in the database. I've tried: self.comment_text.connect('leave_not

[pygtk] Another off-the-wall question

2001-10-24 Thread Jason F. McBrayer
Hi. This is another off the wall question, and it'll probably get as much attention as my question about gnome.triggers last week, but does anyone know if anyone is working on Python bindings for GConf? -- ++ | Jason F. McBrayer

[pygtk] Why do some stock images not display?

2001-10-24 Thread Skip Montanaro
I noticed today that some of the stock images seem to be missing when creating widgets in PyGtk2 that use them. At Havoc's suggestion I ran Gtk's stock image demo. Everything worked fine there. On my system at least, the script below fails to display the UP or DOWN stock images. The BACK and