[PyQt] Converting C++ to Python

Rajeev J Sebastian rajeev.sebastian at gmail.com
Thu Sep 20 12:09:33 BST 2007


Hi,

I am working on the diagramscene example, when I reached upon the following:

 if (textInteractionFlags() & Qt::TextEditable) {


How can I convert that to Python ?

I tried several variations, such as

self.textInteractionFlags() & QtCore.Qt.TextEditable

(self.textInteractionFlags() & QtCore.QtTextEditable ) > 0


.... but I dont think any of them work.


Basically, I am not able to move the text item in the graphics view.

Regards
Rajeev J Sebastian


More information about the PyQt mailing list