(Jun-30-2017, 06:57 PM)nilamo Wrote: toggleButton1 only exists in the MainFloor class. You're trying to change it from within the Fireplace class. A nice way to handle this would be using events or signals (something frequently done in game programming, and is how something like the physics code will do most of it's communication). But that'd be a whole lot of changes.
You currently pass each object a controller object, but the Fireplace doesn't keep track of it. If you do, then you can crawl into the controller and manipulate it's frames to get to the MainFloor to do what you're trying to do. So, Fireplace would then look like this:
Thanks for the information I will have to do some research on events. I implemented the code changes you posted and I received this as an error:
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python3.4/tkinter/__init__.py", line 1536, in __call__
return self.func(*args)
TypeError: __init__() missing 1 required positional argument: 'controller'
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python3.4/tkinter/__init__.py", line 1536, in __call__
return self.func(*args)
TypeError: __init__() missing 1 required positional argument: 'controller'
(Jun-30-2017, 07:00 PM)sparkz_alot Wrote: ... stand by, still reading through the 'imports' 
Yes I know there is a lot of imports and I'm sure there is probably duplicates of the same thing. Like I mentioned I am very new to programming. Once I get a part of it working by itself I would copy and paste them together, adding new and getting rid of old. Going through the list of imports to find out which ones are being used hasn't been on my priority list.