如何使程序以图形方式工作而不是使用控制台 [英] how do you make a program work graphically instead of working with the console

查看:66
本文介绍了如何使程序以图形方式工作而不是使用控制台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我不知道如何解决这个问题,但是我想问的问题是你怎么做的东西就像让我们说一个tic tac toe程序从打印出来到控制台,例如控制台询问你想在哪里放置你的X,你输入右上角。太过实际上有一个tic脚趾网格图形,你可以将X拖到右上方,然后程序会理解,就像你输入控制台一样,右上角就像之前一样。

So I didn't know how to put this across but what I am trying to ask is how do you make something like lets say a tic tac toe program go from only printing out to a console e.g console asks where would you like to place your X and you type top right. Too actually having a tic toe toe grid graphically and you could drag a X to the top right and then the program would understand that the same as if you typed into the console, "top right" like before.

推荐答案

您需要图形用户界面(GUI)。从这个 Python GUI编程教程开始您的学习之旅。
You need Graphical User Interface (GUI). Start your learning journey from this tutorial on Python GUI Programming.


这篇关于如何使程序以图形方式工作而不是使用控制台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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