简体   繁体   English

如何在程序运行时清除运行 window?

[英]How can I clear a run window while the program is running?

so there's this program I made and I want to be able to clear the run window after certain actions are performed, however I haven't been able to find a way to clear it aside from clearing it yourself using the 'clear all' button(PyCharm btw).所以这是我制作的这个程序,我希望能够在执行某些操作后清除运行 window,但是除了使用“全部清除”按钮自行清除之外,我还没有找到清除它的方法( PyCharm 顺便说一句)。 Is it possible to do that?有可能这样做吗?

Edit: Hey so it seems that you can't clear the pycharm terminal without the clear button, however running it in cmd, the os.system('cls') or os.system('clear') works and will clear the screen.编辑:嘿,看来您无法在没有清除按钮的情况下清除 pycharm 终端,但是在 cmd 中运行它,os.system('cls') 或 os.system('clear') 工作并将清除屏幕.

You can't clear the pycharm window without the clear all button, but the os.system('clear') will clear the window if you run it in cmd instead so use that instead.. You can't clear the pycharm window without the clear all button, but the os.system('clear') will clear the window if you run it in cmd instead so use that instead..

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在运行QMainWindow时如何运行QColorDialog窗口? - How can I run a QColorDialog window while running QMainWindow? 如何检测并重新运行程序运行时使用的函数? - How can I detect and rerun functions used while the program is running? 在TensorFlow程序运行时,如何更改TensorFlow程序可以使用的GPU? - How can I change which GPU (s) a TensorFlow program may use while the TensorFlow program is running? 如何通过python脚本获取C运行程序的gtk窗口? - How can I get the gtk window of a C running program through a python script? 我如何并行运行一个函数,并在主程序退出后仍然继续运行? - How I can run a function in parallel and after the main program exits he still continues running? 如何在离线模式下运行 gekko MPC 代码时消除命令 window 的闪烁? - How can i remove the blinking of the command window while running a gekko MPC code in offline mode? 硒运行时能否最小化铬窗口? - Can I minimize chrome window while selenium is running? 如何在 tkinter window 打开时运行 while 循环? - How do I run a while loop in tkinter window while it is open? 如何清除目标端口上运行的进程? - How can I clear the process running on my target port? 当我在KIVY中运行程序时,如何更改窗口上的图标 - How to change the icon on the window when I run my program in KIVY
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM