|
From: Aaron S. <az...@bu...> - 2007-10-30 13:07:31
|
Hi all,
I'm new to PythonCard, so please forgive me if this is old-hat to you
guys...
I'm starting to use the built-in dialogs, and I'm confused about the
return values. The documentation says that all dialogs return a dict of
results, but the actual results are not a dict, but rather some other
undocumented objects -- different for each dialog, so far as I can tell.
For example, when I used the FileDialog, the result has members
'accepted' and paths -- but according to the documentation these are
supposed to be mapped in a dict. Any clarification expected.
result = dialog.fileDialog(self, 'Open', '', '', '*' )
if result.accepted == True:
filename = result.paths[0]
Thanks!
Aaron
(and many questions to follow, I promise!)
|