Wheel-reinvention with Python

Devan L devlai at gmail.com
Mon Aug 1 12:36:58 EDT 2005


Ed Leafe wrote:
> On Sunday 31 July 2005 22:39, Paul Rubin wrote:
>
> > > 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
> >     >>>
>
>  Oh, c'mon now Paul, now you're trolling. You know exactly what the problem
> is, and try to make it look like a bug.
>
>  Fine: you don't want to use anything that doesn't come standard with Python.
> You've made your point. We get it. There is no need to repeat yourself
> constantly.
>
>  The only point of my post was that for those without your aversion to
> installing useful tools, Dabo provides a ton of functionality. Also, as my
> partner Paul McNett pointed out, I could have done it in *two* lines:
>
> import dabo
> dabo.dApp().start()
>
> ;-)
>
> --
>
> -- Ed Leafe
> -- http://leafe.com
> -- http://dabodev.com
If you're creating a new instance of your dApp(I assume its a class)
with no arguments, then effectively your just creating a default
program which is already defined in the dabo module. If you could write
it in a few, short lines of code by defining a new class, then you
might have something there.




More information about the Python-list mailing list