The $ in $python helloworld.py is meant to simbolize the command prompt, not
an environment variable. Sorry for the confusion. I will verify the X
configuration in the machines and get back to you.
Thanks!
--
View this message in context:
http://old.nabble.com/PyQt-application-frozen-if-run-
On Thursday 23 June 2011, 18:26:52 Arrieta wrote:
> Consider the following PyQT application (helloworld.py):
>
>
> import sys
> from PyQt4 import QtGui
>
> def main():
> app = QtGui.QApplication(sys.argv)
> win = QtGui.QPushButton("Hello, World!")
> win.show()
> return app.exec_()
>
Consider the following PyQT application (helloworld.py):
import sys
from PyQt4 import QtGui
def main():
app = QtGui.QApplication(sys.argv)
win = QtGui.QPushButton("Hello, World!")
win.show()
return app.exec_()
if __name__ == "__main__":
sys.exit(main())
If I run ($python