how to reference my own module ?
Stef Mientki
stef.mientki at gmail.com
Sat May 10 15:25:47 EDT 2008
hello,
I've a library that I import as
import ppygui.api as gui
the reason for this construct is that I've to use different libraries
for different platforms.
Now I like to write some examples in the library (activated by if
__name__ == '__main__' :)
and I would that these examples can be used in the user program just by
copy / paste.
For calling a function / class in the user program I've to write:
sizer = gui.VBox ()
So also write exactly the same sentence in the library examples,
but "gui" is not recognized
Any ideas how I can realize the above ?
thanks,
Stef Mientki
More information about the Python-list
mailing list