Robin,
Thanks for the advice. I think I probably do need IPC as my main process
must run continuously, taking readings every 200mS or so, however, you
have given me food for thought and I will try it out (and see how wrong I
am!) next after following a lead given me by Bryan Cole.
Many thanks
Martin Williams
HNS Ltd.
Robin Dunn <robin@alldunn.com>
05/08/03 06:36 PM
Please respond to wxPython-users
···
To: wxPython-users@lists.wxwindows.org
cc:
Subject: Re: [wxPython-users] Spawning under Windows
M.Williams@EU.HNS.COM wrote:
If there is an alternative utility that can spawn off a seperate user
interface which can communicate with the (still running) main program,
There are lots of possibilities for doing IPC in Python but this isn't
really the forum to discuss that. It sounds like you don't really need
it though. If all you need is to show a dialog and get values from it
and then continue on with your otherwise non-gui program then that can
be done without any spawning or IPC. Just create a separate module that
looks like the following, and then when you want to invoke the dialog
just import the module and call the getConfigValues function:
from wxPython.wx import *
class MyDialog(wxDialog):
...
def getConfigValues():
app = wxPySimpleApp()
dlg = MyDialog(...)
if dlg.ShowModal() == wxID_OK:
# get theValues from the dialog
dlg.Destroy()
app.MainLoop() # only needed for cleanup in this case
return theValues
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org
#**********************************************************************
This message is intended solely for the use of the individual
or organisation to whom it is addressed. It may contain
privileged or confidential information. If you have received
this message in error, please notify the originator immediately.
If you are not the intended recipient, you should not use,
copy, alter, or disclose the contents of this message. All
information or opinions expressed in this message and/or
any attachments are those of the author and are not
necessarily those of Hughes Network Systems Limited,
including its European subsidiaries and affiliates. Hughes
Network Systems Limited, including its European
subsidiaries and affiliates accepts no responsibility for loss
or damage arising from its use, including damage from virus.
#**********************************************************************