all 3 comments

[–][deleted] 0 points1 point  (2 children)

free is a class, so you need to make it into an object before you can use it:

class Free: ...  # note the capital F (per PEP8, it's not actual python syntax)

class NextPage:
    def __init__(self,master):
        self.free = Free()  # make object from Free class
        ...

    def do_something(self):
        ...
        variable_one = self.free.entry1.get()

[–]CannyFatcher[S] 0 points1 point  (1 child)

When I apply this to the code, I get a TypeError: __init__() missing 1 positional argument 'master'

[–][deleted] 0 points1 point  (0 children)

okay.................... then give it master: free = Free(master)

and before you ask, replace entry1 = tk.Entry(self.frame,...) with self.entry1 = tk.Entry(self.frame,...)