Home > Development Tools > sublime > body text

Solution to why Sublime Text2 does not display when running PyQt

藏色散人
Release: 2020-04-03 17:16:39
forward
3733 people have browsed it

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!

Solution to why Sublime Text2 does not display when running PyQt

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
Copy after login

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
Copy after login

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"
}
Copy after login

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!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template