PythonWin (much smaller post)
Gordon McMillan
gmcm at hypernet.com
Wed Sep 22 08:59:57 EDT 1999
David Oppenheimer writes:
>
> When I run the following program in PythonWin, I get a dialogue
> box that looks like any other Windows' window that asks for my
> age:
Pythonwin is a GUI. As such (on Windows) it has no stdin
and stdout. So it pops up a messagebox for input, and writes
output to the interactive window.
What you've written is normal console-style code; it just looks
GUI-ish because Pythonwin has to do that for console-style
apps.
You can do what you want by creating your own
win32api.MessageBox, instead of using print. Beyond that,
you'll have to look at how to create real dialogs (see the demo
subdirectory of Pythonwin).
- Gordon
More information about the Python-list
mailing list