I am wondering on how to make a very simple gui with the ability for the user to click a button and perform the ability as if it were a user input. (ie raw_input). I would also like it to have the title of the program (game) on top and the ability to exit.
Jacklittle01
-3
Light Poster
Recommended Answers
Jump to PostThe Tkinter GUI toolkit's equivalent to raw_input() is the Entry widget. Here is an example:
# simple Tkinter code # using two labels, an entry and a button # make tk the name space regardless of Python version try: # Python2 import Tkinter as tk except ImportError: …
All 3 Replies
Tyyppi_77
0
Newbie Poster
bumsfeld
413
Nearly a Posting Virtuoso
ZZucker
342
Practically a Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.