tkinter-entry

Python Tkinter: I'm not sure how to align the guess input with the question

Python Tkinter: I'm not sure how to align the guess input with the question Question: For this code, I’m trying to make a quiz game that has the user convert hexadecimal to decimal. My only issue is that it’s always a hexadecimal behind. To clarify, when I press enter to start the game, it turns …

Total answers: 1

Tkinter delete not working on referenced entry when referenceing lenth of entry

Tkinter delete not working on referenced entry when referenceing lenth of entry Question: I have a tkinter window class that I’ve made and my delete function is not working properly. my_window = tk.Tk() class QuoteForm(): def __init__(self,master): self.file_data = ” self.master = master self.master.rowconfigure(0, weight=1) self.master.rowconfigure(1, weight= 1) self.master.rowconfigure(2, weight = 1) master.geometry(‘600×400’) master.resizable(False,False) #create …

Total answers: 2

'<=' not supported between instances of 'int' and 'method'

'<=' not supported between instances of 'int' and 'method' Question: >! How to fix this error? I wanted to make this application in such a way that when you enter into Text_Field = Entry (root, textvariable = txt), e.g. the number 20, a 20-character password is generat ‘<=’ not supported between instances of ‘int’ and …

Total answers: 2

Returning a Parameter from a Python Tkinter Pop-Up-Window Entry

Returning a Parameter from a Python Tkinter Pop-Up-Window Entry Question: I am trying to create a pop up window with Tkinter where I can enter values with an entry window to use them in the main code. Currently I am trying to simply output the input. I can’t get it to work, does anyone have …

Total answers: 1

reading entry values from function and using inside other function

reading entry values from function and using inside other function Question: I have a bot, which should scrape website. We have one fixed given URL link placeholder (as an Entry in tkinter) it works well. Also, I have add button with help of it, user adds as many as button-clicked entry boxes. When I click …

Total answers: 1

Are there any other methods to detect the key presses on tkinter?

Are there any other methods to detect the key presses on tkinter? Question: I’m currently working on a personal project. I was planning to create a Secured Database where only people with Special ID’s are able to access by just swiping their IDs on the scanner to be able to enter. The problem is that …

Total answers: 1

PyInstaller Exe behaves differently to script

PyInstaller Exe behaves differently to script Question: Aight so I’m getting a user input from a secondary window using customtkinter. When running the script from MSCode everything works fine. The User inputs into the CTkEntry widget. The textvariable properly assigns value. This value is accessed elsewhere. However, when I use pyinstaller to create an .exe …

Total answers: 1

Python tkinter Entry Function not saving input into variable

Python tkinter Entry Function not saving input into variable Question: I am trying to use tkinter to have a user input variables to pass it into a function. The problem is , the input from the user is not being assigned to the actual variable for whatever reason. root = Tk() root.geometry("600×300") MainWindow = Label(root, …

Total answers: 2

Tkinter entry box disable spaces

Tkinter entry box disable spaces Question: Can you block the user from using spaces in an entry box in tkinter? Its for creating a filename, so if they put spaces it won’t work. Asked By: hastur || Source Answers: You can use either this to prevent the user: if no_spaces.count(‘ ‘) > 0: print("Please try …

Total answers: 1