[Spambayes-checkins] spambayes/Outlook2000/dialogs __init__.py,
1.2.4.3, 1.2.4.4 dialog_map.py, 1.1.2.1, 1.1.2.2
Adam Walker
xenogeist at users.sourceforge.net
Tue Aug 5 16:57:38 EDT 2003
Update of /cvsroot/spambayes/spambayes/Outlook2000/dialogs
In directory sc8-pr-cvs1:/tmp/cvs-serv14818/Outlook2000/dialogs
Modified Files:
Tag: outlook-dialog-branch
__init__.py dialog_map.py
Log Message:
Put the about and troubleshooting html files on the toolbar menu.
Index: __init__.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/dialogs/__init__.py,v
retrieving revision 1.2.4.3
retrieving revision 1.2.4.4
diff -C2 -d -r1.2.4.3 -r1.2.4.4
*** __init__.py 5 Aug 2003 08:17:19 -0000 1.2.4.3
--- __init__.py 5 Aug 2003 22:57:35 -0000 1.2.4.4
***************
*** 25,26 ****
--- 25,29 ----
dlg = dlgcore.ProcessorDialog(parent, manager, idd, commands)
dlg.DoModal()
+
+ import dlgutils
+ SetWaitCursor = dlgutils.SetWaitCursor
Index: dialog_map.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/dialogs/Attic/dialog_map.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
*** dialog_map.py 4 Aug 2003 07:21:15 -0000 1.1.2.1
--- dialog_map.py 5 Aug 2003 22:57:35 -0000 1.1.2.2
***************
*** 81,105 ****
win32gui.SendMessage(self.GetControl(), win32con.WM_SETTEXT,
0, filter_status)
-
def ShowAbout(mgr):
! """Displays the main SpamBayes documentation in your Web browser"""
! import sys, os
! if hasattr(sys, "frozen"):
! # Same directory as to the executable.
! fname = os.path.join(os.path.dirname(sys.argv[0]),
! "about.html")
! else:
! # In the parent (ie, main Outlook2000) dir
! fname = os.path.join(os.path.dirname(__file__),
! os.pardir,
! "about.html")
! fname = os.path.abspath(fname)
! if os.path.isfile(fname):
! SetWaitCursor(1)
! os.startfile(fname)
! SetWaitCursor(0)
! else:
! print "Cant find about - fix messagebox"
! self.MessageBox("Can't find about.html")
class DialogCommand(ButtonProcessor):
--- 81,86 ----
win32gui.SendMessage(self.GetControl(), win32con.WM_SETTEXT,
0, filter_status)
def ShowAbout(mgr):
! mgr.ShowHtml("about.html")
class DialogCommand(ButtonProcessor):
More information about the Spambayes-checkins
mailing list