fixed check for attribute 'window' by using has_attribute()

0001867: Patch containing fixes (for reporting and general)


svn: r10151
This commit is contained in:
Brian Matherly
2008-03-01 20:55:36 +00:00
parent 76d7b01103
commit 1f57d5224c
2 changed files with 7 additions and 2 deletions

View File

@@ -466,7 +466,7 @@ class ManagedWindow:
if self.isWindow :
self.present(self)
else :
assert self.window, "ManagedWindow: self.window does not exist!"
assert self.has_attribute('window'), "ManagedWindow: self.window does not exist!"
self.window.present()
#-------------------------------------------------------------------------