When I do that, I get an AttributeError:

Traceback (innermost last):
  File "./gtk.py", line 80, in __call__
    ret = apply(self.func, a)
  File "./gconfig.py", line 1028, in ctree_select_row
    self.save_entries()
  File "./gconfig.py", line 796, in save_entries
    a = self.get_data(i).get_text()
AttributeError: get_data


Any ideas?  

Sam

On Wed, Feb 24, 1999 at 07:58:53AM +0800, James Henstridge wrote:
-> 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.
-> 
-> --
-> 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]

Reply via email to