stupid q-n (wxPy)
Max Khesin
max at cNOvSisiPonAtecMh.com
Tue Apr 29 15:06:12 EDT 2003
gotcha. good advice. thanks.
this copy-paste blooper was brought to you by...
--
========================================
Max Khesin, software developer -
max at cNvOiSsPiAoMntech.com
[check out our image compression software at www.cvisiontech.com, JBIG2-PDF
compression @
www.cvisiontech.com/cvistapdf.html]
"David Bolen" <db3l at fitlinxx.com> wrote in message
news:ullxt6tae.fsf at fitlinxx.com...
> "Max Khesin" <max at cNOvSisiPonAtecMh.com> writes:
>
> > The only detail I have is that the script was copy-pasted out straight
of
> > wxPython demo app. There were no specific instructions in the readme for
> > running the code so I just gave it a shot. Since wxPython is so popular
I
> > fugured someone would just tell me "didn't you bla-bla, (idiot)?".
> > anyway, thanks.
>
> Ah - it's the point about copying it from the "demo" that would have
> helped mentioning in your first post (as opposed to just saying
> "examples"). As it was, it's hard to know why the code snippet you
> gave was referencing the run module, since it's not a standard module.
>
> The wxPython demo is built around a framework that automates tying
> each demo module into the overall demo. If you look in the same demo
> directory where you found this example, you'll find the run.py that
> you probably didn't copy over to where you are experimenting.
>
> Note that run.py is not part of standard Python, nor is it something
> that is documented as part of wxPython. It's just part of the
> wxPython demo code base.
>
> My guess is that you don't really want to use this code (nor the
> run.py module) since that's geared specifically towards the way the
> wxPython demo presents itself. Instead, run the wxPython demo, find
> the module that you're interested in, and then borrow the actual code
> that implements the behavior to put in your own module, and ignore the
> boilerplate framework that ties the module into the demo display.
>
> --
> -- David
> --
> /-----------------------------------------------------------------------\
> \ David Bolen \ E-mail: db3l at fitlinxx.com /
> | FitLinxx, Inc. \ Phone: (203) 708-5192 |
> / 860 Canal Street, Stamford, CT 06902 \ Fax: (203) 316-5150 \
> \-----------------------------------------------------------------------/
More information about the Python-list
mailing list