hi
how to write this in python :
class MyClass : public QWidget {
Q_OBJECT
MyClass::MyClass(otherclass * _zz):QWidget(_zz.somefunc),zz(_zz)
hi
how to write this in python :
class MyClass : public QWidget {
Q_OBJECT
MyClass::MyClass(otherclass * _zz):QWidget(_zz.somefunc),zz(_zz)
That incomplete fragment of C++ probably looks something like this incomplete fragment of Python for PyQt:
but I am not a real Python-headQt Code:
from PyQt4 import QtCore,QtGui def __init__(self, _zz): self.zz = _zzTo copy to clipboard, switch view to plain text mode
alrawab (20th June 2012)
thanks a lot
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
... which is why I prefaced it with "looks something like"
insightful...
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
Bookmarks