[Tutor] Tkinter and PythonWin ?

alan.gauld@bt.com alan.gauld@bt.com
Thu, 22 Nov 2001 17:11:06 -0000


> Tkinter, but on the python.org I-Net page is written that Tkinter=20
> does=B4nt work under PythonWin.=20

I think we need to be clear what we mean here.

You can write Tkinter apps using the PythonWin IDE.
You cannot(easily) mix the pythonwin MFC library with Tkinter.

> use pythonw.exe ?=20

pythonw.exe is just a replacement for python.exe that=20
does not open a console window (aka dos box) when you=20
run the program. It comes as part of the Windows install.
You normally run finished Tkkinter apps using pythonw.exe
but use python.exe to develop them - since you can print=20
debugging statements in it.=20

> Are there other programs which work with Tkinter ?

IDLE the other python IDE commonly used does not=20
like Tkinter running its own mainloop() function. You=20
can get round that but personally I just run the=20
program outside IDLE from a DOS box.

Also, in general its a bad idea to mix GUI libraries=20
so don't try to use Tkinter when already using=20
wxPython, PyQt etc etc...

HTH,

Alan G.