extra TK window in embedded app

howard at eegsoftware.com howard at eegsoftware.com
Wed Jul 11 14:10:48 EDT 2001


I have embedded Python 2.0 into a Windows app. 

(BTW:  Forget the examples/manual.  You MUST define argv with
PySys_SetArgv() or you get an exception on trying to create a Tk()
object.  Of course, under Windows the stderr message goes in the bit
bucket.  Is there any way to make a debugging window to capture
stderr/stdout?  It seems to me I have seen this
duscussed......somewhere)

When I trying running a (Tkinter +PMW) script, I get not only the
window I expected but another empty window.  I don't get this extra
window when running from the command line or from a (Pythonw)
shortcut.

I assume that it is something in Tk/Python that is creating a toplevel
window by default.

Any clues on how to inhibit this?

Howard Lightstone
EEGSoftware
howard at eegsoftware.com



More information about the Python-list mailing list