123456789101112131415161718192021222324 |
- from Tkinter import *
- def UPN():
- root.title('umgekehrte polnische Notation')
- root.resizable(False,False)
- root.geometry('400x500+200+100')
- UI = LabelFrame(root)
- UI.place(x = 1,y = 1,width = 398,height = 124)
- UPN.text = Text(UI)
- UPN.text.place(x=1,y=1,width=390,height=116)
- Li=[['7','8','9','+','DEL'],
- ['4','5','6','-','Enter'],
- ['1','2','3','*','='],
- ['0','00','.','/','Clear']]
-
- for i in range(len(Li[0])):
- for j in range(len(Li)):
- bt = Button(root)
- bt.place(x=(i+1)*60,y=120+(j+1)*60,width=50,height=50)
- bt['text'] = Li[j][i]
- bt.bind('<Button-1>',response,add=(root,))
|