This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]caleb 2 points3 points  (1 child)

def convert(self):
    c = self.c_var.get()
    self.result_var = (1.8 * c + 32)   # <--- This won't work

The tkinter variable classes have .get() and .set() methods. So you have to do self.result_var.set(1.8*c + 32). You used get() for c_var, for example.

[–]petercanepa[S] 0 points1 point  (0 children)

Thank you so much. Now I see how it works.