TomSchimansky / CustomTkinter

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

Frame and Radio button interaction issues #2480

Open ryze123495432325 opened 2 weeks ago

ryze123495432325 commented 2 weeks ago

Discussed in https://github.com/TomSchimansky/CustomTkinter/discussions/11

Hello, I am having an issue with my code here. I am using radio buttons and as you can see from defining the radio button variable, It creates a radio button for every item in a list. I have also created a separate frame for the radio buttons, which you can see how that is defined. However, when I run the code, the frame seems to be dependent on the amount of radio buttons. What I desire is for the frame to go down at a distance that I can define. For context, I am creating a macro management tool with features for creating, editing, and managing macros through a graphical user interface. Please help.

Screenshot 2024-06-20 211736 Screenshot 2024-06-20 211831 Screenshot 2024-06-20 211920

dipeshSam commented 2 weeks ago

Enable expand=True in your radio_frame. It should be like:

radio_frame.pack(fill="both", expand=True, padx=20, pady=12)