I created a GUI where if you click to a button than it will open a python file. But after the click I want to just see the console. How can I hide the GUI or close without closing the console part?
(Windows 10, Python 3.8.5)
I created a GUI where if you click to a button than it will open a python file. But after the click I want to just see the console. How can I hide the GUI or close without closing the console part?
(Windows 10, Python 3.8.5)
You can hide it.
from PyQt5 import QtWidgets
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
win = QtWidgets.QWidget()
win.show()
win.setVisible(False)
sys.exit(app.exec_())