mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
fixed CTkScrollableFrame and example
This commit is contained in:
parent
59df37e920
commit
f47cf024b2
@ -113,7 +113,7 @@ class CTkScrollableFrame(tkinter.Frame, CTkAppearanceModeBaseClass, CTkScalingBa
|
||||
self._parent_frame.grid_columnconfigure(0, weight=1)
|
||||
self._parent_frame.grid_rowconfigure(1, weight=1)
|
||||
self._parent_canvas.grid(row=1, column=0, sticky="nsew", padx=(border_spacing, 0), pady=border_spacing)
|
||||
self._scrollbar.grid(row=1, column=1, sticky="nsew", padx=border_spacing)
|
||||
self._scrollbar.grid(row=1, column=1, sticky="nsew", pady=border_spacing)
|
||||
|
||||
if self._label_text is not None and self._label_text != "":
|
||||
self._label.grid(row=0, column=0, columnspan=2, sticky="ew", padx=border_spacing, pady=border_spacing)
|
||||
|
@ -104,7 +104,8 @@ class App(customtkinter.CTk):
|
||||
|
||||
# create scrollable radiobutton frame
|
||||
self.scrollable_radiobutton_frame = ScrollableRadiobuttonFrame(master=self, width=500, command=self.radiobutton_frame_event,
|
||||
item_list=[f"item {i}" for i in range(100)])
|
||||
item_list=[f"item {i}" for i in range(100)],
|
||||
label_text="ScrollableRadiobuttonFrame")
|
||||
self.scrollable_radiobutton_frame.grid(row=0, column=1, padx=15, pady=15, sticky="ns")
|
||||
self.scrollable_radiobutton_frame.configure(width=200)
|
||||
self.scrollable_radiobutton_frame.remove_item("item 3")
|
||||
|
Loading…
Reference in New Issue
Block a user