changes to framescroll widget to use a standard frame by default instead of a label frame
This commit is contained in:
parent
e72f44ed85
commit
50efd2ebc3
3 changed files with 13 additions and 13 deletions
|
@ -41,14 +41,14 @@ class ServicesSelectDialog(Dialog):
|
|||
self.groups.listbox.bind("<<ListboxSelect>>", 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")
|
||||
|
|
|
@ -51,14 +51,14 @@ class NodeService(Dialog):
|
|||
self.groups.listbox.bind("<<ListboxSelect>>", 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")
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue