简体   繁体   English

我如何使我的python程序在精美的窗口中执行

[英]How do i make my python program execute in a fancy window

Hey guys i have my python program but when i publish it as an executable file i want it to not open in cmd because its not fancy, i want the window when you install games. 大家好,我有我的python程序,但是当我将其发布为可执行文件时,我希望它不会在cmd中打开,因为它不太花哨,在安装游戏时我需要窗口。 heres a picture how i want the window to look: https://starrguide.com/wp-content/uploads/2014/05/Extracting-DNClient.png 这是一张我希望窗口看起来如何的图片: https : //starrguide.com/wp-content/uploads/2014/05/Extracting-DNClient.png

Without that loading bar and the buttons, just the text window is what i want! 没有那个加载栏和按钮,只有文本窗口才是我想要的!

i cant really search how to solve this because i cant describe it in a short way to search in google! 我无法真正搜索如何解决此问题,因为我无法以简短的方式在Google搜索中描述它!

Thanks for help 感谢帮助

In order to make your code come out looking better you need to use a library. 为了使您的代码看起来更好,您需要使用一个库。 You will need to find a library designed to create GUIs (Graphical User Interfaces). 您将需要找到一个用于创建GUI(图形用户界面)的库。 An easy and simple GUI library to use is easygui. 一个简单易用的GUI库是easygui。 However, as far as I am aware it is not capable of producing a window such as the one you have linked. 但是,据我所知,它无法生成您所链接的窗口。 The library I recommend is tkinter. 我推荐的库是tkinter。 It is Python's de facto GUI library. 它是Python的事实上的GUI库。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM