Changeset 132:64da3ed55436
Legend:
- Unmodified
- Added
- Removed
-
main.py
r130 r132 €а 20 20 buttons = tk.Frame(root)€а 21 21 load_1 = tk.Button(buttons, text="Load 1", command=lambda: self.load(1))€а 22 €а load_1. pack(side="left", fill="both", expand = "yes")€а€а 22 load_1.grid(row=1, column=2, stick="news")€а 23 23 load_2 = tk.Button(buttons, text="Load 2", command=lambda: self.load(2))€а 24 €а load_2. pack(side="left", fill="both", expand = "yes")€а€а 24 load_2.grid(row=2, column=3, stick="news")€а 25 25 run_b = tk.Button(buttons, text="Run", command=lambda: self.run())€а 26 €а run_b. pack(side="left", fill="both", expand = "yes")€а€а 26 run_b.grid(row=1, column=5, stick="news")€а 27 27 load_3 = tk.Button(buttons, text="Load 3", command=lambda: self.load(3))€а 28 €а load_3. pack(side="right", fill="both", expand = "yes")€а€а 28 load_3.grid(row=3, column=2, stick="news")€а 29 29 load_4 = tk.Button(buttons, text="Load 4", command=lambda: self.load(4))€а 30 €а load_4. pack(side="right", fill="both", expand = "yes")€а€а 30 load_4.grid(row=2, column=1, stick="news")€а 31 31 step_b = tk.Button(buttons, text="Step", command=lambda: self.step())€а 32 €а step_b. pack(side="right", fill="both", expand = "yes")€а€а 32 step_b.grid(row=3, column=5, stick="news")€а 33 33 return buttons€а 34 34 €а
Note: See TracChangeset
for help on using the changeset viewer.