summaryrefslogtreecommitdiff
path: root/gui.py
diff options
context:
space:
mode:
authorMichal Nowikowski <godfryd@gmail.com>2015-01-14 20:33:43 +0100
committerMichal Nowikowski <godfryd@gmail.com>2015-01-14 20:33:43 +0100
commitbf210b9ad1345b5157179f2a2143e10ba8742c8e (patch)
tree3818ec2f964d291f20cd46aa26b038cbc6348108 /gui.py
parent74b54dfb63862b8821f1438bbffd5ec8f10a7582 (diff)
parent8af554b029bc4fa18dbc89965b7440e1df5a3e95 (diff)
downloadpylint-fix-374.tar.gz
mergefix-374
Diffstat (limited to 'gui.py')
-rw-r--r--gui.py37
1 files changed, 24 insertions, 13 deletions
diff --git a/gui.py b/gui.py
index b3edd28..9c9b138 100644
--- a/gui.py
+++ b/gui.py
@@ -25,7 +25,7 @@ import six
from six.moves.tkinter import (
Tk, Frame, Listbox, Entry, Label, Button, Scrollbar,
- Checkbutton, Radiobutton, IntVar, StringVar,
+ Checkbutton, Radiobutton, IntVar, StringVar, PanedWindow,
TOP, LEFT, RIGHT, BOTTOM, END, X, Y, BOTH, SUNKEN, W,
HORIZONTAL, DISABLED, NORMAL, W,
)
@@ -150,23 +150,34 @@ class LintGui(object):
def init_gui(self):
"""init helper"""
+
+ window = PanedWindow(self.root, orient="vertical")
+ window.pack(side=TOP, fill=BOTH, expand=True)
+
+ top_pane = Frame(window)
+ window.add(top_pane)
+ mid_pane = Frame(window)
+ window.add(mid_pane)
+ bottom_pane = Frame(window)
+ window.add(bottom_pane)
+
#setting up frames
- top_frame = Frame(self.root)
- mid_frame = Frame(self.root)
- radio_frame = Frame(self.root)
- res_frame = Frame(self.root)
- msg_frame = Frame(self.root)
- check_frame = Frame(self.root)
- history_frame = Frame(self.root)
- btn_frame = Frame(self.root)
- rating_frame = Frame(self.root)
+ top_frame = Frame(top_pane)
+ mid_frame = Frame(top_pane)
+ history_frame = Frame(top_pane)
+ radio_frame = Frame(mid_pane)
+ rating_frame = Frame(mid_pane)
+ res_frame = Frame(mid_pane)
+ check_frame = Frame(bottom_pane)
+ msg_frame = Frame(bottom_pane)
+ btn_frame = Frame(bottom_pane)
top_frame.pack(side=TOP, fill=X)
mid_frame.pack(side=TOP, fill=X)
history_frame.pack(side=TOP, fill=BOTH, expand=True)
- radio_frame.pack(side=TOP, fill=BOTH, expand=True)
- rating_frame.pack(side=TOP, fill=BOTH, expand=True)
+ radio_frame.pack(side=TOP, fill=X)
+ rating_frame.pack(side=TOP, fill=X)
res_frame.pack(side=TOP, fill=BOTH, expand=True)
- check_frame.pack(side=TOP, fill=BOTH, expand=True)
+ check_frame.pack(side=TOP, fill=X)
msg_frame.pack(side=TOP, fill=BOTH, expand=True)
btn_frame.pack(side=TOP, fill=X)