Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7758191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T13:17:40+00:00 2026-06-01T13:17:40+00:00

I am a newcomer to Python and is in need of programming a simple

  • 0

I am a newcomer to Python and is in need of programming a simple game that requires the user to input some values into an input screen (afterwhich the Python code would do something with that input). What is the best API to use in this case? I know that pygame gives a very nice GUI on which users can interact with object on the screen but I do not know if this would be the best thing to use in a formal project. Otherwise, I’ve heard about Tkinter and various other applications but really have no idea what would be best.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T13:17:42+00:00Added an answer on June 1, 2026 at 1:17 pm
    from Tkinter import *
    
    class MyDialog:
    
        def __init__(self, parent):
    
            top = self.top = Toplevel(parent)
    
            Label(top, text="Value").pack()
    
            self.e = Entry(top)
            self.e.pack(padx=5)
    
            b = Button(top, text="OK", command=self.ok)
            b.pack(pady=5)
    
        def ok(self):
    
            print "value is", self.e.get()
    
            self.top.destroy()
    
    
    root = Tk()
    Button(root, text="Hello!").pack()
    root.update()
    
    d = MyDialog(root)
    
    root.wait_window(d.top)
    root.mainloop()
    

    Sauce

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a newcomer to Python but I understand that things should not be done
I'm a newcomer to Rails. I want to build a simple form that determines
I am a newcomer to the Python and Twisted game so excuse the ignorance
I'm running into an import issue that as a relative newcomer to the Objective-C/C++/XCode
I need a password for an user as Drupal's installation asks that. I'm totally
I am a newcomer to TDD. What are some of the techniques you guys
I'm a newcomer to PDO and have to say that I like it so
I'm a newcomer to subversion. Recently, I've done some development in two different branches,
I am a Javascript/jQuery/Prototype newcomer and I have a page that has a Prototype
I'm newcomer in django, and here is question: I have model class: def Client(models.User)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.