build cmd into Tkinter window

后端 未结 2 962
南笙
南笙 2021-01-22 11:07

Hi i was wondering if you could have the comand prompt box pop into the Tkinter window when you start the program? Some thing like:

from Tkinter import *
admin =         


        
2条回答
  •  不要未来只要你来
    2021-01-22 11:24

    http://tkinter.unpythonic.net/wiki/CmdTkHere is what you want, this is not just opening a cmd window. its embedding cmd.exe into a Tkinter.Frame. And a note here if you rename the python script to ".pyw" extension, the console will be hidden. Except for in a virtual environment's.

提交回复
热议问题