Hazlett, Les wrote:
>
> 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
>
> >>> impo
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
Hazlett, Les wrote:
> Dave,
>
> Thanks for the guidance. I followed your advice and learned the following:
>
>> >> import run
>
>> >> print "run module:", run
>
> run module:
I don't think that is the correct run.py.
> Luke,
>
> I found this mystery main program in the extensive demos in \
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
It's wxpython demo's code.
It's necessary to have the run.py in the same path, to make it run, and usually
also some other files.
--
Tom, http://www.vscripts.net
>
I've never heard of this module. Where did this code come from?
___
Tutor maillist -
Hazlett, Les wrote:
>
> 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.bas
On Mon, Feb 19, 2007 at 10:15:08AM -0600, Hazlett, Les wrote:
>
> if __name__ == '__main__':
> import sys,os
> import run
> run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])
>
[snip]
> if__name__=='__main__' only runs when this program file is executed.
>
> But, I can't
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])] +