Update of /cvsroot/pythoncard/PythonCard/samples/mp3player
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16511/mp3player
Modified Files:
mp3player.py
Log Message:
dialog.py is now a thin wrapper around wx.lib.dialogs.py
all dialog results now use DialogResults class instead of dictionary
e.g. result.accepted instead of result['accepted']
see dialogs sample and other samples and tools for examples of change
Index: mp3player.py
===================================================================
RCS file: /cvsroot/pythoncard/PythonCard/samples/mp3player/mp3player.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** mp3player.py 8 Aug 2004 17:43:56 -0000 1.2
--- mp3player.py 12 Aug 2004 19:18:54 -0000 1.3
***************
*** 28,33 ****
wildcard = "MP3 files (*.mp3)|*.mp3"
result = dialog.openFileDialog(self, 'Open', path, filename, wildcard )
! if result['accepted']:
! path = result['paths'][0]
self.components.filename.text = path
--- 28,33 ----
wildcard = "MP3 files (*.mp3)|*.mp3"
result = dialog.openFileDialog(self, 'Open', path, filename, wildcard )
! if result.accepted:
! path = result.paths[0]
self.components.filename.text = path
|