Open running processes

Tim Golden tim.golden at viacom-outdoor.co.uk
Wed Jun 29 11:16:15 EDT 2005


[DeRRudi]
| Well it doesnt work yet, but its gonna! ;)
| i've tested it with a little app. There is my main app (called it
| server) wich contains a thread. This thread listens to a mm (memory
| mapping) when an other program sets a flag
| (finished_producing_event.set() ) it just calls self.iconize(false)
| 
| I'm not sure what pieces of code i have to post here.. posting all of
| it makes it too large i believe :)
| 
| >From server:

[.. snip ..]


| def OnChange(self, event):
|         shared_memory.seek(0)
|         tekstding = shared_memory.readline()
|         if(tekstding.strip() ==
| "maximize"):
|             self.Iconize(False)
|             self.Show(False)
|         elif(tekstding.strip() ==
| "minimize"):
|             self.Iconize(True)
|             self.Show(True)
|         self.panel.tekst.SetValue(tekstding)
| [/code:1:080343f1b1]
| 
| Hope you can see now how it works! Greetz

Interesting; but do you need to use shared memory at all?
Why not simply have two events; one for maximise, the
other for minimising? 

TJG

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________



More information about the Python-list mailing list