[Tutor] Developing GUI-programs using IDLE

Michael P. Reilly arcege@speakeasy.net
Sun, 21 Oct 2001 08:59:13 -0400


On Sat, Oct 20, 2001 at 07:48:34PM -0700, Kirby Urner wrote:
> >Otherwise developing GUI-programs with IDLE would be rather
> >uncomfortable.
> 
> I think you will find that developing GUI-programs
> (that use Tk) in IDLE *is* rather uncomfortable.
> That's a drawback of IDLE.
> 
> I agree with the earlier poster:  go ahead and
> edit/reload in IDLE, but test with another icon
> that bypasses IDLE.

The version of IDLE that comes with Python 2.1 does not seem to have a
problem if your program explicitly creates a new Tk() object and you
use that.  (Remember that you can have multiple root windows each
with its own mainloop.)

Also, remember that Python does come with a good text-based debugger
("pdb"), which is one of the "nice reasons" that people use IDLE.
Myself, I rarely use IDLE; pdb has fewer problems with reload().

  -Arcege

-- 
+----------------------------------+-----------------------------------+
| Michael P. Reilly                | arcege@speakeasy.net              |
| Ailment info: http://www.speakeasy.org/~arcege/michaelwatch.html     |