by
Changes to 2 files · Browse files at 4bff4f6eeb51 Showing diff from parent dcffdbc16e16 50685b25e69c Diff from another changeset...
@@ -109,6 +109,7 @@
class MainWindow:
def __init__(self):
+ self.pipethread = None
msg_TaskbarRestart = RegisterWindowMessage("TaskbarCreated");
message_map = {
msg_TaskbarRestart: self.OnRestart,
@@ -141,9 +142,11 @@ self.start_pipe_server()
def OnRestart(self, hwnd, msg, wparam, lparam):
+ logger.msg("MainWindow.OnRestart")
self._DoCreateIcons()
def OnDestroy(self, hwnd, msg, wparam, lparam):
+ logger.msg("MainWindow.OnDestroy")
nid = (self.hwnd, 0)
try:
Shell_NotifyIcon(NIM_DELETE, nid)
@@ -174,12 +177,13 @@ print "Unknown command -", id
def exit_application(self):
+ logger.msg("MainWindow.exit_application")
if self.stop_pipe_server():
DestroyWindow(self.hwnd)
logger.msg("Goodbye")
def stop_pipe_server(self):
- logger.msg("Stopping pipe server...")
+ logger.msg("MainWindow.stop_pipe_server")
if not self.pipethread.isAlive():
logger.msg("pipethread is not alive")
return True
@@ -207,6 +211,9 @@ return True
def start_pipe_server(self):
+ if self.pipethread is not None:
+ return
+
def servepipe():
self.svc = PipeServer(self.hwnd)
self.svc.SvcDoRun()
@@ -407,11 +414,12 @@ self.overlapped.hEvent = win32event.CreateEvent(None,0,0,None)
def SvcStop(self):
- logger.msg('PipeServer thread terminating')
+ logger.msg("PipeServer.SvcStop")
win32event.SetEvent(self.hWaitStop)
requests.put('terminate|')
def SvcDoRun(self):
+ logger.msg("PipeServer.SvcDoRun")
# We create our named pipe.
pipeName = PIPENAME
openMode = win32pipe.PIPE_ACCESS_DUPLEX | win32file.FILE_FLAG_OVERLAPPED
|
@@ -4,9 +4,9 @@ is the python-sphinx package. On Windows your best bet is
easy_install. To build without warnings, you need sphinx 0.6 or later.
-To build PDF files you need latex packages. On Ubuntu this is
-texlive-latex-extra and all of it's dependencies. On Windows the best
-choice is miktex.
+To build PDF files you need latex packages. On Ubuntu these are
+texlive-latex-extra, texlive-fonts-recommended and all of their
+dependencies. On Windows the best choice is miktex.
Once all of the prerequisites are in place, you can use the makefile to
build targets: html htmlhelp latex
|
Loading...