Sublime text 2 running pyqt does not show the solution


Problem description

The pyqt environment is normal. You can use the virtual DOS of windows to run normally, but use Ctrl + B under sublime text 2
After running, the interface will not be displayed, but check the task manager and there is a python.exe process.


Search and find a solution under Linux, as shown below:

Sublime text2 running pyside / pyqt program
After Ctrl – B, the interface will not pop up, but there is “python. Exe” in the background process, and you can print things with print
Open $sublimetext_ dir/Data/Packages/Python/Python.sublime-build
Add “shell”: “true”,

Follow the diagram and open the doorC:\Program Files\Sublime Text 2Directory. Neither the data directory nor the packages directory can be found. I guess it should be placed in the user directory. Find it in the

C: \ users \ my user name \ appdata \ roaming

Found under directory

Sublime Text 2\Packages\Python

Catalog, decisively editPython.sublime-buildContent:

    "cmd": ["python", "-u", "$file"],
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
    "selector": "source.python",
    "shell": "true"