Yes, but it's because of where you are calling it. All of the messages
for your application -- including requests to draw windows, keystrokes,
and mouse clicks -- are all handles in app.MainLoop(). You have an
infinite loop in __init__ waiting for a click message that cannot
possibly be sent, because app.MainLoop() hasn't been called yet.
You need to rethink this a bit. To use a WaitForSingleObject loop,
which is probably the easiest way, you will have to spawn off a second
thread. The first thread will be too busy running the normal Windows
message loop.
ยทยทยท
"Bulkan-Savun Evcimen" <bulkan@gmail.com> wrote:
I was just trying to write a folder change alerter using ToasterBox to
display the alerter, but for some reason the ToasterBoxes aren't
disappearing even when the the closingstyle is set to TB_ONCLICK. And
when you Add or Delete a file from the folder that is being watched
the first operation never gets a TB displayed too?The folder change code is from Tim Golden
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/156178I have also attached the code i have written so far.
result = win32event.WaitForSingleObject (change_handle, 500)
i have a feeling it is this line that is causing the TB's not to
disappear....
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.