Re: [pygtk] getattr confusion

2007-10-25 Thread Donn
Hey Abel! The difference is this: If property.name has the value 'foo', then getattr(self, property.name) is equivalent to getattr(self, 'foo'), Ah, I didn't spot that. Subtle. Thanks. /d -- If there is anyone in the audience who believes in telekinesis, please raise my hand! -- James Randi

[pygtk] colorized a combobox (next)

2007-10-25 Thread awalter1
Hi, The following code colorizes a combobox: cmap = self.win.get_colormap() normal_color = cmap.alloc_color(62737,19052,21984) liststore = gtk.ListStore(str,gtk.gdk.Color) for s in self.simulations: liststore.append([s,normal_color]) self.simulation_combobox = gtk.ComboBox(liststore) cell =

Re: [pygtk] Manual drag and drop

2007-10-25 Thread François Ingelrest
Hi, Maybe you are missing something, because once you call drag_begin(), the DnD is automatically handled by GTK. Did you first call enable_model_drag_dest() on your tree? I implemented manual DnD in a TreeView and it works well, you can try to see what are the differences and why your doesn't

[pygtk] modelfilter + expand attribute

2007-10-25 Thread Yann Leboulanger
Hi all, I have a treeview with rows and sub-rows. This treeview gets his data in a treemodelFilter. Now I collapse rows in thee treeivew, then, I run modelfilter.refilter() Problem appears: rows that I collapsed are now expanded. Is it a bug in GTK or normal behavior? Is there a way to change

Re: [pygtk] (no subject)

2007-10-25 Thread John Ehresman
Alec Hussey wrote: I've been having a ton of trouble with this custom gtk dialog I am trying to create. The code runs however I receive a GtkWarning message saying: /home/maddog39/Projects/mmoalert/actiondialog.py:42: GtkWarning: gtk_box_pack_end: assertion `child-parent == NULL' failed

Re: [pygtk] (no subject)

2007-10-25 Thread Marco Antonio Islas Cruz
For some reason, your self.message_entry is already packet into another container and gtk cries about it `child-parent == NULL' failed` self.message_hbox.pack_end(self.message_entry) Wicht tells you that self.message_entry already have a parent. El jue, 25-10-2007 a las 18:55 -0400, Alec

[pygtk] Re: Manual drag and drop

2007-10-25 Thread Jeffrey Barish
François Ingelrest wrote: Maybe you are missing something, because once you call drag_begin(), the DnD is automatically handled by GTK. Did you first call enable_model_drag_dest() on your tree? Yes, I did call enable_model_drag_dest. In fact, it is the same statement that was already in