Я пишу программу Qt, которая взаимодействует с python. Я должен отправить объект C++ класса Circle непосредственно на Python
1) Need to create a Python Module ( let say Shape )
2) Need to add a Python Class PCircle in Shape module which is equivalent to C++
Circle class.
3) Do the calculation on Python Environment ( Python 3.4)
4) Populate the data into PCircle Object in Python
5) Send it back to Qt Environment by storing the PCircle values to C++ Circle Object
and show the changes in real time in display
Это как я бы описал свою проблему и то, что я собираюсь сделать, если что-то неясно, прокомментируйте.
благодаря
код
from PyQt4 import QWidget
class PCircle(QWidget):
#implement methods here that are available to the QTCircleWidget
код
def calculation(something):
return somthing**2
my_circle = PCircle(x,y,radius)