diff options
Diffstat (limited to 'playoff_gui.py')
-rw-r--r-- | playoff_gui.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/playoff_gui.py b/playoff_gui.py index 9bdef67..216cb2c 100644 --- a/playoff_gui.py +++ b/playoff_gui.py @@ -19,13 +19,18 @@ class PlayoffGUI(tk.Frame): master = kwargs['master'] self.canvas = tk.Canvas(master=master) - self.h_scrollbar = tk.Scrollbar(master=master, orient=tk.HORIZONTAL, command=self.canvas.xview) + self.h_scrollbar = tk.Scrollbar(master=master, + orient=tk.HORIZONTAL, + command=self.canvas.xview) self.h_scrollbar.pack(side=tk.BOTTOM, fill=tk.X) - self.v_scrollbar = tk.Scrollbar(master=master, orient=tk.VERTICAL, command=self.canvas.yview) + self.v_scrollbar = tk.Scrollbar(master=master, + orient=tk.VERTICAL, + command=self.canvas.yview) self.v_scrollbar.pack(side=tk.RIGHT, fill=tk.Y) - self.canvas.configure(xscrollcommand=self.h_scrollbar.set, yscrollcommand=self.v_scrollbar.set) + self.canvas.configure(xscrollcommand=self.h_scrollbar.set, + yscrollcommand=self.v_scrollbar.set) self.canvas.bind_all('<MouseWheel>', self.__on_scroll) self.canvas.pack(side=tk.LEFT, fill=tk.BOTH, expand=True) |