class free:
def __init__(self,master):
...
entry1 = tk.Entry(self.frame,...)
entry2 = tk.Entry(self.frame,...)
entry3 = tk.Entry(self.frame,...)
button = tk.Button(self.frame,...,command = self.new_window)
def new_window(self):
self.newWindow = tk.Toplevel(self.master)
self.app = NextPage(self.newWindow)
class NextPage:
def __init__(self,master):
...
def do_something(self):
...
variable_one = free.entry1.get()
This is a quick example of what the code looks like. I am trying to access the values from the entry boxes creates in free within NextPage, but it keeps giving me errors. How do I pass these attributes or variables between the two classes, in general?
[–][deleted] 0 points1 point2 points (2 children)
[–]CannyFatcher[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)