Resolve Sublime Text 2 running PyQt under Windows without displaying method sharing
- 2020-04-02 13:46:09
- OfStack
The solution
I searched and found a solution under Linux, as follows:
Sublime Text2 run pySide/pyQt Procedural problems
Ctrl-B after , The interface doesn't pop up , But it's in the background process "python.exe", And use print You can print things out .
The solution :
Open the $sublimeText_dir/Data/Packages/Python/Python.sublime-build
increase "shell": "true",
Follow the guide, open C: Program Files Sublime Text 2 directory, did not find the Data directory, also did not have Packages directory, guess should be put in the user directory, look for, in
C:\Users\ my user name \AppData\Roaming
Found under catalogue
Sublime does Text 2 / Packages/Python
Directory, decisively edit Python. Sublime -build content:
{
"cmd": ["python", "-u", "$file"],
"file_regex": "^[ ]*File "(...*?)", line ([0-9]*)",
"selector": "source.python",
"shell": "true"
}
Done!