Running robot framework command through wxPython GUI makes the GUI window unresponsive

Hi all,

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.

Thanks in advance,
Spondita

Hi,

Hi all,

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:

see:

http://wiki.wxpython.org/LongRunningTasks

-Chris

···

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

Chris.Barker@noaa.gov

Hi ,

Thanks Chris and Cody. Threading did seem to be the solution.

Regards,

Spondita

···

On Sun, May 6, 2012 at 10:56 AM, Chris Barker chris.barker@noaa.gov 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.

see:

http://wiki.wxpython.org/LongRunningTasks

-Chris

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

Chris.Barker@noaa.gov

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en