diff --git a/coretk/coretk/dialogs/customnodes.py b/coretk/coretk/dialogs/customnodes.py index 6416d24a..94f2a32f 100644 --- a/coretk/coretk/dialogs/customnodes.py +++ b/coretk/coretk/dialogs/customnodes.py @@ -41,14 +41,14 @@ class ServicesSelectDialog(Dialog): self.groups.listbox.bind("<>", self.handle_group_change) self.groups.listbox.selection_set(0) + label_frame = ttk.LabelFrame(frame, text="Services") + label_frame.grid(row=0, column=1, sticky="nsew") + label_frame.columnconfigure(0, weight=1) + label_frame.rowconfigure(0, weight=1) self.services = CheckboxList( - frame, - self.app, - text="Services", - clicked=self.service_clicked, - padding=FRAME_PAD, + label_frame, self.app, clicked=self.service_clicked, padding=FRAME_PAD ) - self.services.grid(row=0, column=1, sticky="nsew") + self.services.grid(sticky="nsew") label_frame = ttk.LabelFrame(frame, text="Selected", padding=FRAME_PAD) label_frame.grid(row=0, column=2, sticky="nsew") diff --git a/coretk/coretk/dialogs/nodeservice.py b/coretk/coretk/dialogs/nodeservice.py index 59b8865b..8ad87649 100644 --- a/coretk/coretk/dialogs/nodeservice.py +++ b/coretk/coretk/dialogs/nodeservice.py @@ -51,14 +51,14 @@ class NodeService(Dialog): self.groups.listbox.bind("<>", self.handle_group_change) self.groups.listbox.selection_set(0) + label_frame = ttk.LabelFrame(frame, text="Services") + label_frame.grid(row=0, column=1, sticky="nsew") + label_frame.columnconfigure(0, weight=1) + label_frame.rowconfigure(0, weight=1) self.services = CheckboxList( - frame, - self.app, - text="Services", - clicked=self.service_clicked, - padding=FRAME_PAD, + label_frame, self.app, clicked=self.service_clicked, padding=FRAME_PAD ) - self.services.grid(row=0, column=1, sticky="nsew") + self.services.grid(sticky="nsew") label_frame = ttk.LabelFrame(frame, text="Selected", padding=FRAME_PAD) label_frame.grid(row=0, column=2, sticky="nsew") diff --git a/coretk/coretk/widgets.py b/coretk/coretk/widgets.py index 6567ca75..7deb7282 100644 --- a/coretk/coretk/widgets.py +++ b/coretk/coretk/widgets.py @@ -25,7 +25,7 @@ def file_button_click(value): value.set(file_path) -class FrameScroll(ttk.LabelFrame): +class FrameScroll(ttk.Frame): def __init__(self, master, app, _cls=ttk.Frame, **kw): super().__init__(master, **kw) self.app = app