wxPython - Simple implement (for Newbie)
Steve Hunt
steve at pSoPgAgMle.org
Wed Dec 11 08:25:28 EST 2002
> - how do I get just the wxChooseDir (sp?) control to pop up, and the
> result to be assigned to a variable?
from wxPython.wx import *
chooser = wxDirDialog(None)
if chooser.ShowModal() == wxID_OK:
choice = chooser.GetPath()
print choice
else:
print "Cancelled"
> - How do I get a dialog box to come up where user can type in notes
> and I assign the same to a string?
Look at the docs for wxMessageDialog, wxTextEntryDialog,
wxSingleChoiceDialog etc. Calling them will be similar to
the directory dialog.
-- Steve
More information about the Python-list
mailing list