Hello. I want close black window(Like Command line) in Tkinter. Please help. | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

Hello. I want close black window(Like Command line) in Tkinter. Please help.

Tkinter

6th Jan 2018, 7:10 PM
Yunis HĆ¼seynzadə
Yunis HĆ¼seynzadə - avatar
2 Respostas
+ 6
You can use the subprocess module for that and invoke the Windows command taskkill, like this import subprocess subprocess.call('taskkil /IM cmd.exe') It should close the cmd.exe
6th Jan 2018, 9:25 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 1
Thanks
7th Jan 2018, 7:33 AM
Yunis HĆ¼seynzadə
Yunis HĆ¼seynzadə - avatar