Russell Shaw [Sun, Feb 15, 2004 at 08:01:07PM +1100]: > Hi, > I get this error: > > File "db.py", line 81, in get_table > if self.window != None: > AttributeError: Edit_Manufs instance has no attribute 'window' > > However, i figured out this way: > > if 'window' in dir(self): > self.window.destroy()
*DON'T* do this. Declare the variable and set it to "None" in __init__. ... unless code obfuscation is your goal. _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
