From: Kevin A. <al...@se...> - 2004-08-26 19:14:22
|
With release 0.8, Line 1164 of model.py should be: filename = os.path.join(self.parent.application.applicationDirectory, filename) instead of filename = os.path.join(parent.application.applicationDirectory, filename) I messed this up when copying some code from the childWindow function. If you don't fix this line, then any CustomDialogs you have will fail if you try them from standalone with an error such as: Traceback (most recent call last): File "PythonCard\widget.pyc", line 402, in _dispatch File "dialogs.py", line 127, in on_buttonMinimalDialog_mouseClick File "minimalDialog.pyc", line 18, in minimalDialog File "minimalDialog.pyc", line 12, in __init__ File "PythonCard\model.pyc", line 1164, in __init__ NameError: global name 'parent' is not defined ka |