Peter Decker wrote: > > It's also possible to something like that with wxPython. Try: > > import wx > > app = wx.PySimpleApp() > > dlg = wx.TextEntryDialog(None, 'Enter value', 'Title', '') > > if dlg.ShowModal() == wx.ID_OK: > > val = dlg.GetValue() # this line should be indented > > dlg.Destroy() > > print "you have entered %s" % val > > That's the sort of butt-ugly code that got me convinced that Dabo is > the way to go. To get a simple message box, you have to create it, > show it, check a return value against an ugly constant (make sure you > don't forget an use wx.OK instead!), and then remember to destroy it > or your app will hang.
if you're using a Python version without a "def" statement, it's time to upgrade. </F> -- http://mail.python.org/mailman/listinfo/python-list