Update of /cvsroot/pythoncard/PythonCard/samples/dialogs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27879/samples/dialogs
Modified Files:
dialogs.py
Log Message:
more dialog related fixes
Index: dialogs.py
===================================================================
RCS file: /cvsroot/pythoncard/PythonCard/samples/dialogs/dialogs.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** dialogs.py 15 Aug 2004 17:34:56 -0000 1.23
--- dialogs.py 15 Aug 2004 17:55:36 -0000 1.24
***************
*** 68,85 ****
"""
! You can pass in a specific icon (default is ICON_INFORMATION)
! as well as the buttons (default is BUTTON_OK | BUTTON_CANCEL)
! ICON_EXCLAMATION # Shows an exclamation mark icon.
! ICON_HAND # Shows an error icon.
! ICON_ERROR # Shows an error icon - the same as wxICON_HAND.
! ICON_QUESTION # Shows a question mark icon.
! ICON_INFORMATION # Shows an information (i) icon.
! OK # Show an OK button.
! CANCEL # Show a Cancel button.
! YES_NO # Show Yes and No buttons.
! YES_DEFAULT # Used with wxYES_NO, makes Yes button the default - which is the default behaviour.
! NO_DEFAULT # Used with wxYES_NO, makes No button the default.
"""
def on_buttonMessage_mouseClick(self, event):
--- 68,85 ----
"""
! You can pass in a specific icon (default is wx.ICON_INFORMATION)
! as well as the buttons (default is wx.OK | wx.CANCEL)
! wx.ICON_EXCLAMATION # Shows an exclamation mark icon.
! wx.ICON_HAND # Shows an error icon.
! wx.ICON_ERROR # Shows an error icon - the same as wxICON_HAND.
! wx.ICON_QUESTION # Shows a question mark icon.
! wx.ICON_INFORMATION # Shows an information (i) icon.
! wx.OK # Show an OK button.
! wx.CANCEL # Show a Cancel button.
! wx.YES_NO # Show Yes and No buttons.
! wx.YES_DEFAULT # Used with wx.YES_NO, makes Yes button the default - which is the default behaviour.
! wx.NO_DEFAULT # Used with wx.YES_NO, makes No button the default.
"""
def on_buttonMessage_mouseClick(self, event):
***************
*** 94,98 ****
# you can pass in an additional aStyle parameter
! # of TEXT_PASSWORD or TEXT_MULTILINE
def on_buttonTextEntry_mouseClick(self, event):
result = dialog.textEntryDialog(self,
--- 94,98 ----
# you can pass in an additional aStyle parameter
! # of wx.TE_PASSWORD or wx.TE_MULTILINE
def on_buttonTextEntry_mouseClick(self, event):
result = dialog.textEntryDialog(self,
***************
*** 104,108 ****
'What is your favorite language?',
'A window title',
! 'Python', wx.TEXT_MULTILINE)
"""
self.components.fldResults.text = "textEntryDialog result:\naccepted: %s\nreturnedString: %s\ntext: %s" % (result.accepted, result.returnedString, result.text)
--- 104,108 ----
'What is your favorite language?',
'A window title',
! 'Python', wx.TE_MULTILINE)
"""
self.components.fldResults.text = "textEntryDialog result:\naccepted: %s\nreturnedString: %s\ntext: %s" % (result.accepted, result.returnedString, result.text)
|