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



--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to