Update of /cvsroot/pythoncard/PythonCard/samples/radioclient
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16511/radioclient
Modified Files:
radioclient.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: radioclient.py
===================================================================
RCS file: /cvsroot/pythoncard/PythonCard/samples/radioclient/radioclient.py,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** radioclient.py 10 May 2004 00:45:21 -0000 1.25
--- radioclient.py 12 Aug 2004 19:18:57 -0000 1.26
***************
*** 187,193 ****
msg = "Are you sure want to delete post %s made on %s?" % (postID, dateTime)
result = dialog.messageDialog(self, msg, 'Delete Post',
! dialog.ICON_EXCLAMATION,
! dialog.BUTTON_YES_NO | dialog.BUTTON_NO_DEFAULT)
! if result['accepted']:
self.blog.deletePost(int(postID))
# now get the recent posts again just to be safe
--- 187,192 ----
msg = "Are you sure want to delete post %s made on %s?" % (postID, dateTime)
result = dialog.messageDialog(self, msg, 'Delete Post',
! wx.ICON_EXCLAMATION | wx.YES_NO | wx.NO_DEFAULT)
! if result.accepted:
self.blog.deletePost(int(postID))
# now get the recent posts again just to be safe
|