[Spambayes-checkins] spambayes/Outlook2000/dialogs test_dialogs.py,
1.1.2.1, 1.1.2.2
Mark Hammond
mhammond at users.sourceforge.net
Sun Aug 3 19:42:29 EDT 2003
Update of /cvsroot/spambayes/spambayes/Outlook2000/dialogs
In directory sc8-pr-cvs1:/tmp/cvs-serv27209
Modified Files:
Tag: outlook-dialog-branch
test_dialogs.py
Log Message:
Get sub-dialogs working again after my pre-checkin reorg frenzy
Index: test_dialogs.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/dialogs/Attic/test_dialogs.py,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** test_dialogs.py 4 Aug 2003 01:16:28 -0000 1.1.2.1
--- test_dialogs.py 4 Aug 2003 01:42:27 -0000 1.1.2.2
***************
*** 47,50 ****
--- 47,68 ----
self.MessageBox("Can't find about.html")
+ class DialogCommand(ButtonProcessor):
+ def __init__(self, window, control_ids, idd):
+ self.idd = idd
+ ButtonProcessor.__init__(self, window, control_ids)
+ def OnClicked(self, id):
+ parent = self.window.hwnd
+ # Thos form and the other form may "share" options, or at least
+ # depend on others. So we must save the current form back to the
+ # options object, display the new dialog, then reload the current
+ # form from the options object/
+ self.window.SaveAllControls()
+ ShowDialog(parent, self.window.manager, self.idd)
+ self.window.LoadAllControls()
+
+ def GetPopupHelpText(self, id):
+ dd = self.window.manager.dialog_parser.dialogs[self.idd]
+ return "Displays the %s dialog" % dd.caption
+
dialog_map = {
"IDD_MANAGER" : (
More information about the Spambayes-checkins
mailing list