diff options
author | emkael <emkael@tlen.pl> | 2017-01-10 12:33:03 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-01-10 12:33:03 +0100 |
commit | 8002645f30a1191c7220e79d51fa58d3c3edbbf9 (patch) | |
tree | a768fabe42225dd1def0b2e0f4d2f70efe7988f1 | |
parent | c5d4e6e943ecc5c2b47942ab9dbd091601b4328b (diff) |
Code formatting
-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) |