Hello! There are query strings:
enterme = Entry (root, width = 10) enterme2 = Entry (root, width = 10) and there is a function in the use of this variable:
ramdme = random.randrange (int(enterme),int(enterme2)) An error occurs:
TypeError: int() argument must be a string, a bytes-like object or a number, not 'Entry' How can I get the value obtained via Entry to int? All code:
import tkinter as tk import tkinter.ttk as ttk import random root=tk.Tk() enterme = Entry (root, width = 10) enterme_2 = enterme.get() enterme2 = Entry (root, width = 10) enterme2_2 = enterme2.get() ramdme = random.randrange (int(enterme),int(enterme2)) enterme.place() enterme2.place() root.mainloop()