alex_bn_lee

导航

[1033] Run the batch file of the PyQt GUI, but don't show the CMD

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 select Create shortcut
  • Right-click the shortcut and choose Properties 
  • Under the Shortcut tab, change the Run option to Minimized

posted on 2024-07-16 12:14  McDelfino  阅读(3)  评论(0编辑  收藏  举报