diff --git a/model/设计模型_莫松霖_美食自由.vsdx b/model/设计模型_莫松霖_美食自由.vsdx index bf585a5..f790980 100644 Binary files a/model/设计模型_莫松霖_美食自由.vsdx and b/model/设计模型_莫松霖_美食自由.vsdx differ diff --git a/src/main_admin.py b/src/main_admin.py index d757800..623b937 100644 --- a/src/main_admin.py +++ b/src/main_admin.py @@ -89,17 +89,50 @@ class admin:#管理员主界面 self.tree=ttk.Treeview(self.f1,height=15,show="tree") self.f1.place(x=20,y=50) self.tree.place(x=0,y=0,width=510) - self.tree.insert("","end",text="流水号:2213012390") - self.tree.insert("","end",text="桌号:100") - self.tree.insert("","end",text="点餐列表:") - self.tree.insert("","end",iid="piz",text="九寸披萨¥60") + self.tree.insert("","end",iid="1",text="流水号:2213012390 桌号:100") + self.tree.insert("1","end",text="桌号:100") + self.tree.insert("1","end",text="点餐列表:") + self.tree.insert("1","end",iid="piz",text="九寸披萨¥60") self.tree.insert("piz","end",text="水果拼牛肉¥30") self.tree.insert("piz","end",text="加厚饼底¥10") self.tree.insert("piz","end",text="双份芝士¥30") - self.tree.insert("","end",iid="co",text="拿铁咖啡¥10") + self.tree.insert("1","end",iid="co",text="拿铁咖啡¥10") self.tree.insert("co","end",text="90%纯奶添加¥5") self.tree.insert("co","end",text="冰滴萃取¥3") - self.tree.insert("","end",text="总计¥148") + self.tree.insert("1","end",text="总计¥148") + self.tree.insert("","end",iid="2",text="流水号:2000123456 桌号:15") + self.tree.insert("2","end",text="桌号:15") + self.tree.insert("2","end",text="点餐列表:") + self.tree.insert("2","end",iid="pizz",text="九寸披萨¥60") + self.tree.insert("pizz","end",text="水果拼牛肉¥30") + self.tree.insert("pizz","end",text="加厚饼底¥10") + self.tree.insert("pizz","end",text="双份芝士¥30") + self.tree.insert("2","end",iid="coo",text="拿铁咖啡¥10") + self.tree.insert("coo","end",text="90%纯奶添加¥5") + self.tree.insert("coo","end",text="冰滴萃取¥3") + self.tree.insert("2","end",text="总计¥148") + self.tree.insert("","end",iid="3",text="流水号:2000987654 桌号:34") + self.tree.insert("3","end",text="桌号:34") + self.tree.insert("3","end",text="点餐列表:") + self.tree.insert("3","end",iid="pizzz",text="九寸披萨¥60") + self.tree.insert("pizzz","end",text="水果拼牛肉¥30") + self.tree.insert("pizzz","end",text="加厚饼底¥10") + self.tree.insert("pizzz","end",text="双份芝士¥30") + self.tree.insert("3","end",iid="cooo",text="拿铁咖啡¥10") + self.tree.insert("cooo","end",text="90%纯奶添加¥5") + self.tree.insert("cooo","end",text="冰滴萃取¥3") + self.tree.insert("3","end",text="总计¥148") + self.tree.insert("","end",iid="4",text="流水号:2000123456 桌号:99") + self.tree.insert("4","end",text="桌号:99") + self.tree.insert("4","end",text="点餐列表:") + self.tree.insert("4","end",iid="pizzzz",text="九寸披萨¥60") + self.tree.insert("pizzzz","end",text="水果拼牛肉¥30") + self.tree.insert("pizzzz","end",text="加厚饼底¥10") + self.tree.insert("pizzzz","end",text="双份芝士¥30") + self.tree.insert("4","end",iid="coooo",text="拿铁咖啡¥10") + self.tree.insert("coooo","end",text="90%纯奶添加¥5") + self.tree.insert("coooo","end",text="冰滴萃取¥3") + self.tree.insert("4","end",text="总计¥148") self.b5=tk.Button(self.t,relief="raised",image=self.file6,bg="orange") self.b6=tk.Button(self.t,relief="raised",image=self.file7,bg="orange") self.b7=tk.Button(self.t,relief="raised",image=self.file8,bg="orange",command=self.re1) @@ -154,7 +187,7 @@ class admin:#管理员主界面 self.f3.place(x=20,y=40) self.tree3.place(x=0,y=0,width=510) self.b10=tk.Button(self.t,relief="raised",image=self.file10,bg="orange") - self.b11=tk.Button(self.t,relief="raised",image=self.file11,bg="orange") + self.b11=tk.Button(self.t,relief="raised",image=self.file11,bg="orange",command=lambda:self.tree3.delete(1)) self.b12=tk.Button(self.t,relief="raised",image=self.file12,bg="orange") self.b13=tk.Button(self.t,relief="raised",image=self.file8,bg="orange",command=self.re3) self.b10.place(x=220,y=360)