TomSchimansky / CustomTkinter

A modern and customizable python UI-library based on Tkinter
MIT License
10.84k stars 1.02k forks source link

Frame inside frame #2319

Closed KorryKatti closed 3 months ago

KorryKatti commented 3 months ago

I have a scrollable frame , i would like to create a non scrollable frame inside it , which will be on the right side of a button placed on the left side of the scrollable frame. How do i achieve this.

or in simpler words

I need to put a small frame next to a button inside a bigger frame that can scroll. How do I do that?

Akascape commented 3 months ago

@KorryKatti Can you explain it more? Maybe show a similar image of the ui.

KorryKatti commented 3 months ago

OnPaste 20240321-083308

i would like to place a frame inside the red border area

FaheemM1020 commented 3 months ago

Here it is:

import customtkinter 

root = customtkinter.CTk()

scrollable_frame = customtkinter.CTkScrollableFrame(root)
scrollable_frame.pack(padx=10,pady=10)

frame = customtkinter.CTkFrame(scrollable_frame,fg_color='grey55',bg_color='grey55')
frame.pack(padx=10,pady=10)

root.mainloop()
KorryKatti commented 3 months ago

sounds to good to be true , will check and tell

KorryKatti commented 3 months ago

It actually worked. Man what was i even doing last time. Thanks @FaheemM1020 , closing this issue