Jun-28-2017, 02:30 PM
I'm finding it hard to follow your code because there is no indentation within it as it's displayed here.
So it may be that when you are doing
also I think there is a syntax error anyway. I think it should be
in this part of the code I have shown the indentation I would expect
No doubt someone who is far more conversant with this will help.
So it may be that when you are doing
ToggleButton1["text"] = ("Fireplace On")It cannot see where you have defined ToggleButton1
also I think there is a syntax error anyway. I think it should be
ToggleButton1["text"] = "Fireplace On"I'm a long way from being an expert but it seems there are many errors in the code. for example in a case where you use def
in this part of the code I have shown the indentation I would expect
class SampleApp(tk.Tk): def __init__(self, *args, **kwargs): tk.Tk.__init__(self, *args, **kwargs) self.title_font = tkfont.Font(family='Helvetica', size=18, weight="bold", slant="italic") self.title_font2 = tkfont.Font(family='Helvetica', size=10, weight="bold") self.title_font3 = tkfont.Font(family='Helvetica', size=12, weight="bold") self.title_font4 = tkfont.Font(family='Helvetica', size=10, weight="bold")but I have no idea if the
self.title_font = tkfont.Font(family='Helvetica', size=18, weight="bold", slant="italic") self.title_font2 = tkfont.Font(family='Helvetica', size=10, weight="bold") self.title_font3 = tkfont.Font(family='Helvetica', size=12, weight="bold") self.title_font4 = tkfont.Font(family='Helvetica', size=10, weight="bold")part should be indented to be part of the class itself.
No doubt someone who is far more conversant with this will help.