#๐Ÿ”’ working on school project getting frame object error take two with paste bin

12 messages ยท Page 1 of 1 (latest)

near herald
#

ok so heres the trace back https://paste.pythondiscord.com/IFXQ

and heres the code im working on https://paste.pythondiscord.com/U7OA

now idealy the roll for recipe button should delete its self after its clicked.

Frame Object Error: When attempting to access attributes or methods of the master object (which should be a tkinter Frame), an AttributeError is raised, indicating that the Frame object does not possess the expected attributes or methods.

lastly just for reference im only in an introduction to python class.

misty crowBOT
#

@near herald

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

spring citrus
#

pretty advanced project for an intro class

#

what is self.master?

near herald
#

Self references and instance within a class. Wear self.master references an instance referred to as master.

And it is an introductory class though it is college level stuff like I am in college for this

spring citrus
near herald
#

In the context of my code, self.master refers to the master widget or the parent widget of the current widget instance. In the RecipeGeneratorApp class, self.master refers to the root Tkinter window created using tk.Tk()

spring citrus
#

Well you're passing tk.Tk() to your constructor and assigning it to self.master

near herald
#

Ahh derp. Yup that's an issue.

spring citrus
#

I have to go, good luck with your course.

misty crowBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.