Commit 36c8c4b8 by BellCodeEditor

save project

parent 39bdb55e
Showing with 18 additions and 29 deletions
import tkinter # e=[]
# def w():
alist = ["星期六下午打篮球", "星期天下午和小美一起看电影", # while True:
"12月18日给蒂法过生日","12.24送妈妈圣诞礼物"] # a=input("您想吃啥呀或者输入q退出!?")
# if a=="q":
class Note(): # 便签、笔记 # break
def __init__(self): # else:
self.root = tkinter.Tk() # a.append(e)
self.root.geometry('300x340+1000+200') # print(e)
self.root.title("我的便签-待办事项") # w()
self.root.resizable(width=False, height=False) try:
input("你想吃啥?打'q'退出!")
def show(self): # 布置窗口界面 print(a)
# 输入框 except:
self.ent = tkinter.Entry(self.root, show=None, print("命名出错")
font=('宋体', 13), bg="snow", width=25) else:
self.ent.place(x=10, y=310) print("OKOkOK")
# 按钮 \ No newline at end of file
self.but = tkinter.Button(self.root,text='添加',font=('宋体',12),
bg="lightblue", width=5, command=self.get_info)
self.but.place(x=240, y=305)
def get_info(self):
pass
app = Note()
app.show()
app.root.mainloop()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment