79111169

Date: 2024-10-21 17:43:56
Score: 0.5
Natty:
Report link

I added password_table as an attribute to the CreatePassword class.

class CreatePassword(ttk.Frame):
    def __init__(self, parent, password_table):
        super().__init__(parent)

And satisfied it in the App() component.

# App class inherits tkinter
class App(tk.Tk):
    def __init__(self):
        super().__init__()
        self.title('Password Manager')
        # Add Components
        self.header = Header(self)
        self.savedpasswords = SavedPasswords(self)
        self.createpassword = CreatePassword(self, self.savedpasswords.password_table)

This seems to work and I am able to add the values to the table.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: John Roby