boa constructor - run script/output

delphiro delphiro at zonnet.nl
Thu Jun 26 13:14:50 EDT 2003


problem 1)

It sounds like you need to import your script

import your_script_name

and attach an event to the function that you want to call
from within your script

for example;

yourscript.py contains function 'DoThis()'

in gui class:

import yourscript.py

some event

def OnButtonMyButtonDown(self,event):
    yourscript.DoThis()

2)

You will have to edit your script in a way that it
knows where to send it's output. This means you will
have to pass a widget (like wxTextCtrl) to your script
and output the messages to that widget.

The best way to actualy learn wxPython for me was to study the
examples. They realy make things clear for almost any widget!

Hope this helps,
Rob

-- 
[-------------delphiro-------------]
[-- http://pyciv.sourceforge.net --]
[----------------------------------]





More information about the Python-list mailing list