3 beginner questions!

Scott Chapman scott_list at mischko.com
Tue May 6 23:29:25 EDT 2003


On Tuesday 06 May 2003 13:37, Ali Dada wrote:
> > Before *instantiating* widgets, you need to instantiate QApplication.
> > Did you do that...?
>
> nope! how should i do that (i should give it an argument but i don't
> know the type of this argument) and where should i do that (seperate
> file than that generated?)

I've attached a small PyQt application that was used in a class at Linux Fest 
Northwest a couple weeks ago.  It's small and demonstrates these issues very 
well.
There's 4 files in the attached gzipped tarball:
at_auto.py  at.py  at.ui  Makefile

The at.ui file is created by QtDesigner.
run make in that directory to create at_auto.py
at.py shows how to do the subclassing that Alex mentioned.

Have fun!
Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: at_daemon.tar.gz
Type: application/x-tgz
Size: 1895 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20030506/4f174ad4/attachment.bin>


More information about the Python-list mailing list