I have created a GUI using wxPython toolkit and facing some problems.
In my GUI, I have a button by clicking on which Robot Framework
command runs.
i.e. pybot.bat mytest.tsv
The problem is once I click the button and the pybot command runs ,
the wxpython GUI window simply becomes unresponsive if clicked.
However once the pybot command finishes execution, this behaviour is
not found and the GUI window behaves normally.
I want to know why is this happening. Kindly help.
I have created a GUI using wxPython toolkit and facing some problems.
In my GUI, I have a button by clicking on which Robot Framework
command runs.
i.e. pybot.bat mytest.tsv
The problem is once I click the button and the pybot command runs ,
the wxpython GUI window simply becomes unresponsive if clicked.
However once the pybot command finishes execution, this behaviour is
not found and the GUI window behaves normally.
I want to know why is this happening. Kindly help.
Your command is running and blocking further execution of the code
since it is being run in the same thread. So all the code that is
responsible for painting the windows, handling mouse clicks, ect..
cannot run until your command has returned (exited).
Not sure what "Robot Framework" is or what your using it for or how
your running the command but if you don't want it to block the UI of
your application you will need to look into running it in a backround
thread.
Cody
···
On Fri, May 4, 2012 at 4:50 AM, Spondita <sponditaneog@gmail.com> wrote:
On Fri, May 4, 2012 at 8:13 AM, Cody <codyprecord@gmail.com> wrote:
Not sure what "Robot Framework" is or what your using it for or how
your running the command but if you don't want it to block the UI of
your application you will need to look into running it in a backround
thread.
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception