[Tutor] Main program confusion

2007-02-19 Thread Hazlett, Les
Thanks Kent, Yes, there is a run.py in the demo folder. I is the one that runs and not the one in the Python25 lib. So, I tried to see if I could find it if I previously imported everything that the code imports. It didn't - see below: IDLE 1.2 >>> import wx >>> import s

[Tutor] Main program confusion

2007-02-19 Thread Hazlett, Les
Dave, Thanks for the guidance. I followed your advice and learned the following: >>> import run >>> print "run module:", run run module: The run.py file is there also. I can read but not understand what run.py does. It may be something new in Python 2.5. I have unistalled Python 2.4

[Tutor] Main program confusion

2007-02-19 Thread Hazlett, Les
Hello, I am trying to understand some sample code that includes the following for a main program: def runTest(frame, nb, log): win = TestPanel(nb, log) return win if __name__ == '__main__': import sys,os import run run.main(['', os.path.basename(sys.argv[0])] +

[Tutor] Mulltiple TK frames

2007-02-14 Thread Hazlett, Les
Thank you Alan and John, No doubt the widow vs. frame terminology is simpe "once you understand it". But I am still confused. John used the labels "Main Window" and "Other Window" and Alan said you normally have many frames inside a single window. Knowing that I am still confused by the windo

[Tutor] Multiple Tk frames

2007-02-13 Thread Hazlett, Les
Hi, I have found many simple examples of using Tk with one frame. I found self.quit to close the open frame object. I see that control goes to the end of main, but I don't know how to then create and use another frame. Below is a "cut-down" version of what I have tried. Thanks for any help,

[Tutor] How to pass a large list to another object?

2007-02-12 Thread Hazlett, Les
Hello, I just joined the list. I have searched the archives unsuccessfully trying to learn how to approach my problem. So I have 2 questions - 1) How can I best pass a large list to another object? 2) How could I have found related discussion with a search of the archives?

[Tutor] Creating an Identifier or Object Name from a String?

2007-02-10 Thread Hazlett, Les
Hi, I read the information at http://mail.python.org/mailman/listinfo/tutor but am still not sure how to properly send a question. Will I get an email response without joining the list? Thanks for any help. Les I thought when I read the 2002 thread with the subject (Creating an Identifier