-
Notifications
You must be signed in to change notification settings - Fork 1.2k
CTkScrollableFrame
Tom Schimansky edited this page Feb 5, 2023
·
8 revisions
Standard scrollable frame with vertical orientation:
scrollable_frame = customtkinter.CTkScrollableFrame(master=root_tk, width=200, height=200)Horizontal orientation:
scrollable_frame = customtkinter.CTkScrollableFrame(master=root_tk, width=200, height=200, orientation="horizontal")Frame with title:
scrollable_frame = customtkinter.CTkScrollableFrame(master=root_tk, width=200, height=200, label_text="frame title")| argument | value |
|---|---|
| master | root, Frame or Toplevel |
| width | width in px (inner frame dimensions) |
| height | height in px (inner frame dimensions) |
| corner_radius | corner radius in px |
| border_width | border width in px |
| fg_color | foreground color, tuple: (light_color, dark_color) or single color or "transparent" |
| border_color | border color, tuple: (light_color, dark_color) or single color |
| scrollbar_fg_color | scrollbar foreground color, tuple: (light_color, dark_color) or single color |
| scrollbar_button_color | scrollbar button color, tuple: (light_color, dark_color) or single color |
| scrollbar_button_hover_color | scrollbar button hover color, tuple: (light_color, dark_color) or single color |
| label_fg_color | label foreground color color, tuple: (light_color, dark_color) or single color |
| label_text_color | label text color, tuple: (light_color, dark_color) or single color |
| label_text | label text for label (title for frame) |
| label_font | font for label, tupel font or CTkFont |
| label_anchor | anchor for label, orientation of text, ("n", "ne", "e", "se", "s", "sw", "w", "nw", "center") |
| orientation | scrolling direction, "vertical" (default), "horizontal" |
-
All attributes can be configured and updated.
-
Pass attribute name as string and get current value of attribute.
CustomTkinter by Tom Schimansky 2022
The Github Wiki is outdated, the new documentation can be found at: