Ich möchte mir ein Box erstellen in der man einen Temperaturwert umwandeln kann. Leider scheitere ich bereits früh wenn ich folgendes eingebe:
Code: Alles auswählen
from Tkinter import *
class App:
def_init_(self, master)
frame = Frame(master)
frame.pack()
Label(frame, text='deg C').grid(row=0, column=0)
button = Button(frame, text='Convert', command=self.convert)
button.grid(row=1)
def convert(self):
print('Not implemented')
root = Tk()
root.wm_title('Temp Converter')
app = App(root)
root.mainloop()
- File "graftest2.py", line 6
Frame = Frame(master)
IndentitationError: unexpected indent
