1

I have 1 variable in my entire script that I would like to be able to have a GUI to input the information each time the script is ran. I just started learning Python last week, and have no idea. Basically

variable1 = "x"

I would need a GUI to enter what x is each time the script is ran.

Sorry, I know this question is the simplest thing, I'm just lost.

Also, I'm using Python 2.7.

1
  • Take a look at PyQt. Commented Mar 23, 2015 at 21:47

1 Answer 1

3
import wx
a =wx.App()
x = wx.GetTextFromUser("Enter X:")

is one way to do it that is pretty easy

are you sure

x = raw_input("Enter X:")

isnt good enough?

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.