Okay several things wrong from what I can see
encounter errors because someone presses the 2nd button first -- I would definitely state that you need to
name your 2 buttons something different like self.btnOpen1 and self.btnOpen2 but it would be even better to
name them more appropriately based on what they do. If you trying to have the button do two different things
then you would have the button call a function that then called whatever functionality you wanted it to perform
- within the Class Setup you instantiate the Class hhelp within the help() method as "bb"
- when you instantiate Class hhelp as "bb" you never anchor it to the Setup Class using "self."
- You call both buttons "self.button" which really means you only have one button that is performing that
second function (as it was the last assignment made) but we have already established that the first button is
what instantiates that class that the second button calls
encounter errors because someone presses the 2nd button first -- I would definitely state that you need to
name your 2 buttons something different like self.btnOpen1 and self.btnOpen2 but it would be even better to
name them more appropriately based on what they do. If you trying to have the button do two different things
then you would have the button call a function that then called whatever functionality you wanted it to perform
self.btnOpen = Button(self.root, command=self.DoOneOfThese) def DoOneOfThese() if self.YourCriterion: self.help() else: self.change_background_class_hhelp()