"Tiago Saboga" <[EMAIL PROTECTED]> wrote

> I am making a front-end to ffmpeg with pyqt and I am stuck in a
> segmentation fault I can't understand. I have written a little

> def main(args):
>    app = QtGui.QApplication(args)
>    win = Combobox()
>    win.show()
>    app.exec_()
>
>    print type(Aux.mystring)
>    # If uncommented segfaults
>    # mystring = unicode(Aux.mystring)
>    print ("The same" if Aux.mystring==Aux.mystring2 else 
> "Different")

It looks from this that it has nothing to do with Qt per se.
Does unicode() work OK outside of Qt?
Or is Aux.mystring an insance of a QtString class that you need to
deference to get the real string that unicode will understand?

All I can think of, not knowing anything much of Qt.

Alan G.


_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to