[PyQt] Converting C++ to Python

Phil Thompson phil at riverbankcomputing.co.uk
Thu Sep 20 13:05:15 BST 2007


On Thursday 20 September 2007, Rajeev J Sebastian wrote:
> 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

The above is correct.

> (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.

Then the problem is probably somewhere else.

Phil


More information about the PyQt mailing list