Closed GoogleCodeExporter closed 9 years ago
The problem is that pyscripter sets the contents of sys.argv as unicode strings.
if you modify your script to
from PySide import QtCore, QtGui
import sys
sys.argv = [str(i) for i in sys.argv]
app = QtGui.QApplication(sys.argv)
label = QtGui.QLabel("Hello")
label.show()
sys.exit(app.exec_())
then it runs fine.
Python documentation says that for filenames and the like a unicode string
could be used in place of an str. Why PyQt is not prepared to accept a unicode
string in sys.argv is beyond me.
In any case I will change the behaviour in the forthcoming release.
Original comment by pyscripter
on 7 Oct 2010 at 7:51
Thanks for the quick response. I was unaware of this unicode behavior. By the
way, congratulations on this great IDE!
Original comment by paulo.ivson@gmail.com
on 7 Oct 2010 at 8:52
Hey I may have a similar problem when I attempt to make this tuto :
http://www.youtube.com/watch?v=fqK8N48kPXs&list=PLA955A8F9A95378CE
The script is launching, but refuses to close, while it should after 5
seconds...
the code is in the file
Tahnks a lot !
Original comment by vincentg...@gmail.com
on 4 Jun 2013 at 1:19
Attachments:
Original issue reported on code.google.com by
paulo.ivson@gmail.com
on 7 Oct 2010 at 5:31Attachments: