在 tkinter for python 中运行我的可执行文件时如何删除黑色终端? [英] how to remove black terminal while running my my executable file in tkinter for python?

查看:26
本文介绍了在 tkinter for python 中运行我的可执行文件时如何删除黑色终端?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从 tkinter python 制作了小程序.当我运行这个可执行程序时,我在后台看到黑屏.我在此链接中附上了图片( https://drive.google.com/folderview?id=0B77Z7Ug9rVFFfmlpMXRfbTlUR1ZuQjVNbV9VWmMtZUk2amhrMHYxRWprSnJGdGh1TVdNbVU&usp=分享)

I Have made small program from tkinter python. while i run this executable program i see black screen in background. i have attached images in this link (https://drive.google.com/folderview?id=0B77Z7Ug9rVFFfmlpMXRfbTlUR1ZuQjVNbV9VWmMtZUk2amhrMHYxRWprSnJGdGh1TVdNbVU&usp=sharing)

我想删除这个黑屏,因为我想把这个程序打包成 .exe 格式而没有这个黑屏.

I want to remove this black screen because i want to pack this program to .exe format without this black screen.

等待正确答案.

推荐答案

你应该使用 .pyw 扩展名保存你的脚本.

You should save your script with .pyw extension.

这篇关于在 tkinter for python 中运行我的可执行文件时如何删除黑色终端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆