Wheel-reinvention with Python

Paul Rubin http
Sun Jul 31 22:39:33 EDT 2005


Ed Leafe <ed at leafe.com> writes:
> > I can put up a Tk gui in about 5 lines of code from a stock Python
> > distro without having to install anything additional.  How do I do
> > that with wxPython?
> 
> import dabo
> app = dabo.dApp()
> dApp.start() 
> 
>  Sorry, I couldn't do it in 5.  ;-) Oh, and that includes a full menu, too.

I get an ImportError exception when I try that.  Any suggestions?  Note
that I don't get that exception from Tkinter.

    bash-3.00$ python
    Python 2.3.4 (#1, Oct 26 2004, 16:42:40) 
    [GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import dabo
    Traceback (most recent call last):
      File "<stdin>", line 1, in ?
    ImportError: No module named dabo
    >>> import Tkinter
    >>> 



More information about the Python-list mailing list