PythonCard dialogs -- return values
"Aaron Stevens" <[email protected]>
| Newsgroups | gmane.comp.python.pythoncard |
|---|---|
| Message-ID | <00b301c81af5$6dde3d10$a30ac580@AZSLAPTOPIBM> |
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!)
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/