|
From: Philippe C. M. <phi...@sb...> - 2005-04-15 23:13:40
|
Hi,
I have a few pythoncard scripts that I wish to launch from another one - ex:
click on button 1 == call script 1, click on button 2 = call script 2.
My code looks like below and although I do not get any error, the new wndow
that appears on the click event is the same as the one from the launcher.
Is there a way to achieve my goal ?
Regards,
Philippe
class MyBackground(model.Background):
def on_initialize(self, event):
# if you have any initialization
# including sizer setup, do it here
pass
#********************************************************************
def on_ID_mouseClick(self, event):
import corpid
app = model.Application(corpid.Corp_ID_Demo)
app.MainLoop()
if __name__ == '__main__':
app = model.Application(MyBackground)
app.MainLoop()
--
*************************************
Philippe C. Martin
SnakeCard, LLC
www.snakecard.com
+1 405 694 8098
*************************************
|