shortest but complete python gui example on winxp

1) check *.pyw file-extension

assoc | find “pyw”

2) create a text file like C:\temp\test1.pyw —

from Tkinter import *
root = Tk()
root.mainloop()

3) double-click *.pyw file

3b) Alternatively, you can also type C:\temp\test1.pyw in DOS

Advertisements
Posted in py

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s