rev 292 - in offlineimap/head: debian offlineimap/ui
[email protected] Thu, 2 Jan 2003 14:00:24 -0600 (CST)
| Newsgroups | gmane.mail.imap.offlineimap.subversion |
|---|---|
| Message-ID | <[email protected]> |
Author: jgoerzen Date: 2003-01-02 14:00:23 -0600 (Thu, 02 Jan 2003) New Revision: 292 Modified: offlineimap/head/debian/changelog offlineimap/head/offlineimap/ui/Tk.py Log: Beginning of work to make it work with a threaded Tcl/Tk Tkinter. Modified: offlineimap/head/debian/changelog ============================================================================== --- offlineimap/head/debian/changelog (original) +++ offlineimap/head/debian/changelog Thu Jan 2 14:00:24 2003 @@ -1,3 +1,9 @@ +offlineimap (3.99.6) unstable; urgency=low + + * Beginnings of work to make it work with a threaded Tcl/Tk Tkinter. + + -- John Goerzen <[email protected]> Thu, 2 Jan 2003 13:59:44 -0600 + offlineimap (3.99.5) unstable; urgency=low * Added ability to disable expunging on the server. Modified: offlineimap/head/offlineimap/ui/Tk.py ============================================================================== --- offlineimap/head/offlineimap/ui/Tk.py (original) +++ offlineimap/head/offlineimap/ui/Tk.py Thu Jan 2 14:00:24 2003 @@ -19,7 +19,7 @@ from Tkinter import * import tkFont from threading import * -import thread, traceback, time +import thread, traceback, time, threading from StringIO import StringIO from ScrolledText import ScrolledText from offlineimap import threadutil, version @@ -152,18 +152,20 @@ return 0 def _createTopWindow(self, doidlevac = 1): - self.top = Tk() - self.top.title(version.productname + " " + version.versionstr) self.threadframes = {} self.availablethreadframes = [] self.tflock = Lock() self.notdeleted = 1 + self.created = threading.Event() t = threadutil.ExitNotifyThread(target = self._runmainloop, name = "Tk Mainloop") t.setDaemon(1) t.start() + self.created.wait() + del self.created + if doidlevac: t = threadutil.ExitNotifyThread(target = self.idlevacuum, name = "Tk idle vacuum") @@ -171,6 +173,9 @@ t.start() def _runmainloop(s): + s.top = Tk() + s.top.title(version.productname + " " + version.versionstr) + s.created.set() s.top.mainloop() s.notdeleted = 0 @@ -364,6 +369,7 @@ s.fontfamily = config.get('ui.Tk.Blinkenlights', 'fontfamily') if config.has_option('ui.Tk.Blinkenlights', 'fontsize'): s.fontsize = config.getint('ui.Tk.Blinkenlights', 'fontsize') + def _createTopWindow(self): VerboseUI._createTopWindow(self, 0) #self.top.resizable(width = 0, height = 0)