NEWBIE ALERT!
Esteemed List Participants and Lurkers:
Thanks for the gracious response to my last NON-WX plea for help. I have
had lots of fun writing a successful beginner's tutorial example with
"time()". Special thanks to Bjoern Platzen for his "mentor" explanation.
Let me cut to the chase with the next question ... WX this time?
(System: P-II 350, 192 meg, Win98 SE, Python 2.2.3,
wxPythonWIN32-2.4.1.2-Py22.exe)
I want to edit and run a SIMPLE beginner's program from the IDLE GUI.
Within the program, I want to pop up a Windows modal dialog box with a
message "Is this a test?"; a title "Test Query"; and I want YES|NO buttons
to exit and pass a yes|no boolean back to the program. The program will
then pop up a second dialog message box "You selected (yes or no)" with
title "Response:" with a close button.
Here is everything but the popups:
# Program: Beginners_Popups.py ... "Hello World" for popups
# Import and set up the WX popups here.
# As minimal as is possible
print "Begin program"
# Prepare the basic programmatic messages
strMess1 = "Is this a Test?"
strTitle1 = "Test Query"
strResponse = "You selected "
strTitle2 = "Response:"
# 1st popup goes here:
# Message = strMess1
# Title = strTitle1
# YES|NO buttons Returning Boolean boolVar
# Build the appropriate response
if boolVar:
strResponse += "YES"
else:
strResponse += "NO"
# 2nd popup goes here:
# Message = strResponse
# Title = strTitle2
# and close button
print "End of Program"
Once I get this far, I will have the guts of everything I need (for now!).
I just can't seem to find enough beginner's information for the WX pieces.
I already have a filter written to read and parse a directory of files into
a dictionary of location #s and file names, read in a master location list,
and create a text file of an HTML table with file links in the cells. I
have about 120 locations to deal with, and it is working great. I just
need a couple of primitive user interface points, and popups are standard.
Thank you for your gracious comments, suggestions, assistance, and even
criticisms.
Blessings in abundance, all the best, and ENJOY!
Art Du Rea Carlisle, PA