def onNewTask(self):
print("This Will Allow The User To Create An Task.")
self.taskWindows = Toplevel(self)
self.taskWindows.wm_title("New Task")
Label(self.taskWindows, text="Task Name").grid(row=0)
Label(self.taskWindows, text="Task Day:").grid(row=1)
Label(self.taskWindows, text="Task Month:").grid(row=2)
Label(self.taskWindows, text="Task Year:").grid(row=3)
self.taskGrid1 = Entry(self.taskWindows)
self.taskGrid2 = Entry(self.taskWindows)
self.taskGrid3 = Entry(self.taskWindows)
self.taskGrid4 = Entry(self.taskWindows)
self.taskGrid1.grid(row=0, column=1)
self.taskGrid2.grid(row=1, column=1)
self.taskGrid3.grid(row=2, column=1)
self.taskGrid4.grid(row=3, column=1)
Button(self.taskWindows, text='Add', command=self.taskWindowAdd).grid(row=5, column=0, sticky=W, pady=4)
Button(self.taskWindows, text='Cancel', command=self.taskWindowClose).grid(row=5, column=1, sticky=W, pady=4)
评论列表
文章目录