Skip to content
Advertisement

tkinter Python GUI Frame Positioning

How can you position the frames (and or elements inside the frames) such that the radio buttons at the bottom are shifted to the left outer edge of the GUI interface and the title is shifted to the center of the GUI interface?

GUI

enter image description here

JavaScript

Advertisement

Answer

To achieve the goal:

  • set columnspan=3 in frame_title.grid(...)
  • set columnspan=2 in frame_fields.grid(...)
  • move frame_scan to column 2
JavaScript

The output:

enter image description here

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement