Sublime Forum

[Python] no result on building

#1

I’ve recently investigated using Sublime Text as an editor for working on Python, MEL and MXS scripting (the latter two thanks to some great package support).
I’m now having problems when building a simple Python script in Sublime. The script works fine when run in Python’s IDLE.

I’ve changed none of the build settings in Python.sublime-build.
Building simply doesn’t finish, nothing happens and I have to just cancel manually.

Code below…

[code]import sys
from PyQt4 import QtGui

def main():

app = QtGui.QApplication(sys.argv)
w = QtGui.QWidget()
w.resize(250, 150)
w.move(300, 300)
w.setWindowTitle('Simple')
w.show()

sys.exit(app.exec_())

if name == ‘main’:
main()
[/code]

I have Python 2.6.4 and PyQt 4.9.4 (designed for Py2.6) all 32bit (using these versions as they are necessary for compatibility with my version of Maya).

Suggestions would be greatly appreciated as I currently don’t know where to start looking to fix this. :smile: Thanks.

0 Likes