I built a GUI layout using PyQt, and I run the Python file with a .bat
file. However, this method initially displays the CMD window before showing the program's main window, which looks a bit odd. To prevent or minimize the CMD window from appearing, follow these steps:
- Right-click the
.bat
file and selectCreate shortcut
- Right-click the
shortcut
and chooseProperties
- Under the
Shortcut
tab, change theRun
option toMinimized
标签:Run,show,GUI,CMD,PyQt,window,file From: https://www.cnblogs.com/alex-bn-lee/p/18304905