I have created a py2.6 script for a simple GUI with Tkinter. Saved it with .py extension and also as .pyw extension.
filename is entry.py [CODE] from Tkinter import * from quitter import Quitter def fetch(): print('Input => "%s"' % ent.get()) root = Tk() ent = Entry(root) ent.show='@' ent.insert(0, 'Type words here') ent.pack(side=TOP, fill=X) ent.focus() ent.bind('<Return>', (lambda event: fetch())) btn = Button(root, text='Fetch', command=fetch) btn.pack(side=LEFT) Quitter(root).pack(side=RIGHT) root.mainloop() [/CODE] 1) When run from command prompt as --- D:\py>python entry.py it runs nicely. 2) If I double-click on either entry.py or entry.pyw file, nothing happens (no DOS console window to show any error also). Any idea how should I run this with double-click on icon! Thanks, Vineet.
_______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32