[PyKDE] Problems with a port of C++/Qt book to Python

mbouchar mbouchar at bioinfo.ulaval.ca
Mon Jul 18 15:16:04 BST 2005


Douglas Soares de Andrade wrote:

>Hi !
>
>Im trying to make a port of the book C++ GUI programming with Qt to Python. I 
>alrealdy did the first chapter, but i tried to port the example in the 
>section Subclassing Qt, but i have no success. 
>
>Some part of the cpp code is a little complicated to me, as this example:
>
>FindDialog::FindDialog(QWidget *parent, const char *name) : QDialog(parent, 
>name)
>
>As i understood, it is a implementation of the constructor, but i cant get the 
>idea in how to port it to python.
>
>Can someone here can help me or translate this example to python, so i will do 
>the rest, since it is most equal in the rest of the book.
>
>The code is here:
>
>http://www.unilestemg.br/find.tar.gz
>
>Thank you all so much for any help.
>
>  
>
FindDialog::FindDialog(QWidget *parent, const char *name) : QDialog(parent,

name)

---

def __init__(self, parent, name):
   QDialog.__init__(self, parent, name)




More information about the PyQt mailing list