Answers for "user input gui python"

1

python gui capture user input

import tkinter as tk
from tkinter import simpledialog

ROOT = tk.Tk()

ROOT.withdraw()
# the input dialog
USER_INP = simpledialog.askstring(title="Test",
                                  prompt="What's your Name?:")

# check it out
print("Hello", USER_INP)
Posted by: Guest on October-04-2020
1

user input python

input = input("Enter your value: ") 

print(input) # prints the input
Posted by: Guest on September-17-2020

Python Answers by Framework

Browse Popular Code Answers by Language