[Spambayes-checkins]
spambayes/Outlook2000/dialogs __init__.py, 1.3, 1.4
Adam Walker
xenogeist at users.sourceforge.net
Sun Aug 17 15:15:27 EDT 2003
Update of /cvsroot/spambayes/spambayes/Outlook2000/dialogs
In directory sc8-pr-cvs1:/tmp/cvs-serv16651/Outlook2000/dialogs
Modified Files:
__init__.py
Log Message:
Added support for modeless dialogs and property pages.
Index: __init__.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/dialogs/__init__.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** __init__.py 10 Aug 2003 07:26:49 -0000 1.3
--- __init__.py 17 Aug 2003 21:15:25 -0000 1.4
***************
*** 26,29 ****
--- 26,42 ----
dlg.DoModal()
+ def MakePropertyPage(parent, manager, idd):
+ """Creates a child dialog box to use as property page in a tab control"""
+ if manager.dialog_parser is None:
+ manager.dialog_parser = LoadDialogs()
+ import dialog_map
+ commands = dialog_map.dialog_map[idd]
+ if not parent:
+ raise "Parent must be the tab control"
+
+ import dlgcore
+ dlg = dlgcore.ProcessorPage(parent, manager, idd, commands)
+ return dlg
+
import dlgutils
SetWaitCursor = dlgutils.SetWaitCursor
More information about the Spambayes-checkins
mailing list