Re: [pygtk] new snapshot of pygtk
This is a bit difficult, as there doesn't seem to be anywhere to pass in a user_data argument, that is used in pygtk to keep a reference to the python function. James Henstridge. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Wed, 21 Apr 1999, David M. Cook wrote: On Tue, Apr 20, 1999 at 01:37:03PM +0800, James Henstridge wrote: I have put up another snapshot of pygtk (hopefully the last before 0.5.13 or 0.6.0 depending on what name seems more appropriate). This version requires gtk+ 1.2.1 or later. Is it possible to add GtkCList.set_compare_func()? Dave Cook To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED] To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
Re: [pygtk] new snapshot of pygtk
On Thu, Apr 22, 1999 at 10:37:53AM +0800, James Henstridge wrote: This is a bit difficult, as there doesn't seem to be anywhere to pass in a user_data argument, that is used in pygtk to keep a reference to the python function. I thought it might be something fundamental like that as the def files in the guile-gtk package have a function called set_compare_func_full that is commented out. The Perl and Pike bindings seem to be missing it as well. Perhaps the Gtk folks can be persuaded to modify the function or add another one to make it easier to wrap. Dave Cook To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
Re: [pygtk] new snapshot of pygtk
Maybe ... it would probably have to wait for gtk+ 1.3 series. It would require adding a sort_user_data member to the GtkCList structure. This might not sound bad at first, but it would change all the addresses of GtkCTree public members, which would break binary compatibility (and that is before you add the extra function to the library :) James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Wed, 21 Apr 1999, David M. Cook wrote: On Thu, Apr 22, 1999 at 10:37:53AM +0800, James Henstridge wrote: This is a bit difficult, as there doesn't seem to be anywhere to pass in a user_data argument, that is used in pygtk to keep a reference to the python function. I thought it might be something fundamental like that as the def files in the guile-gtk package have a function called set_compare_func_full that is commented out. The Perl and Pike bindings seem to be missing it as well. Perhaps the Gtk folks can be persuaded to modify the function or add another one to make it easier to wrap. Dave Cook To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED] To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
Re: [pygtk] new snapshot of pygtk and gnome-python
Probably just have to revert to the old way. Convert getattr(self, i) to "self.get_data(i)" and setattr(self, i, a) to "self.set_data(i, a)" James Henstridge. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Tue, 23 Feb 1999, Sam Tannous wrote: Sorry for my stupidity, but since you've commented out the setattr and getattr in this new snapshot, my code now crashed. To make life easy, I have a loop set up where I do the following: for i in self.router_config_entries: a = getattr(self,i).get_text() setattr(self.router_dict[self.current_router],i,a) for i in self.router_config_checkbuttons: a = getattr(self,i).active # print 'saving i = ',i, 'a = ',a setattr(self.router_dict[self.current_router],i,a) So what am I supposed to do now? Sam On Tue, Feb 23, 1999 at 11:29:47PM +0800, James Henstridge wrote: - I have put up a new snapshot of pygtk and gnome-python. The big change is - that I have commented out the __[gs]etattr__ functions as they were had - the potential to cause more trouble than convenience. - To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED] To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
Re: [pygtk] New snapshot of pygtk
If you can think of some more functions that should accept None instead of a string or object, report that here as well. gtk_selection_owner_set(widget, selection, time) where widget may be NULL. To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
Re: [pygtk] New snapshot of pygtk
James Henstridge [EMAIL PROTECTED] writes: I am not sure how to handle this problem. Does anyone have any ideas? Can you please try to recapitulate what exactly the problem is? I find it sort of hard to follow. To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]