boa constructor - run script/output

delphiro delphiro at
Thu Jun 26 19:14:50 CEST 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; contains function 'DoThis()'

in gui class:


some event

def OnButtonMyButtonDown(self,event):


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,

[-- --]

More information about the Python-list mailing list