Closed GoogleCodeExporter closed 9 years ago
One obvious workaround is
to replace
root.protocol('WM_DELETE_WINDOW', root.quit)
by
root.protocol('WM_DELETE_WINDOW', root.destroy)
but this would be a change in a section of code which is named
# Standalone Code Initialization
# DO NOT EDIT
and of course it does not explain why root.quit() does not work when called
from Pyscripter.
Sincerly
Rolf
Original comment by rolf.hem...@gmail.com
on 8 Jun 2014 at 12:00
Please use the standard remote Python engine and reinitialize before each run
(this is done by default). Then it will behave as expected
See also https://code.google.com/p/pyscripter/wiki/RemoteEngines (contenet is
in the help file as well)
Remote Tk
This remote Python engine is specifically created to run and debug Tkinter
applications including pylab using the Tkagg backend. It also supports running
pylab in interactive mode. The engine activates a Tkinter mainloop and replaces
the mainloop with a dummy function so that the Tkinter scripts you are running
or debugging do not block the engine. You may even develop and test Tkinter
widgets using the interactive console.
Debugging Wx and Tkinter scirpts using the remote Wx and Tk engines
As mentioned above the Wx and Tk engines activate a main loop and replace the
MainLoop? with a dummy function. Therefore, when debugging Gui scripts using
these engines, as soon as you reach the MainLoop? statement debugging ends and
you can then test the running application but without further debugging
support. This means two things:
Breakpoints and debugging would work up to the point the script enters the
MainLoop? routine
You will not be able to debug event triggered code using these two engines.
To debug event code of Wx and Tkinter scripts use **the standard remote
engine**.
You may wonder why should you ever use the Wx and Tk specific remote engines.
Here is a few reasons:
- These engine allow you to interactively develop and test frames and widgets.
(possible because they run their own main loop.
- They support running pylab in interactive mode like IPython does, which was
a request from many Pyscripter users.
- There is no need to reinitialize the engines after running Gui scripts.
Pyscripter does not stay in running mode while the Gui Windows are showing but
instead it returns in ready mode allowing further work and runs.
Original comment by pyscripter
on 28 Mar 2015 at 10:13
Original comment by pyscripter
on 28 Mar 2015 at 10:15
Original issue reported on code.google.com by
rolf.hem...@gmail.com
on 8 Jun 2014 at 7:54