The following tutorial column of sublime will introduce to you how sublime automatically repairs eslint errors. I hope it will be helpful to friends in need!
Problem description
The PyQt environment is normal and can run normally using Windows virtual DOS , but after using Ctrl B
to run it under Sublime Text 2, the interface is not displayed, but when you check the task manager, there is a python.exe process.
Solution
After searching, I found a solution under Linux, as shown below:
Sublime Text2 runs the pySide/pyQt program Problem
After Ctrl-B, the interface will not pop up, but there is "python.exe" in the background process, and things can be printed using print.
Solution:
打开$sublimeText_dir/Data/Packages/Python/Python.sublime-build
Add "shell": "true",
Follow the picture and open the C:\Program Files\Sublime Text 2 directory. There is no Data directory and no Packages directory, guess. It should be placed in the user directory. After searching, I found the
Sublime Text 2\Packages\Python
directory in the
C:\Users\My Username\AppData\Roaming
directory. Decisively edit Python.sublime-build content:
{ "cmd": ["python", "-u", "$file"], "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", "selector": "source.python", "shell": "true" }
Done!
Recommended tutorial: "sublime text2"
The above is the detailed content of Solution to why Sublime Text2 does not display when running PyQt. For more information, please follow other related articles on the PHP Chinese website!