Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5843641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:10:56+00:00 2026-05-22T12:10:56+00:00

I’m having troubles aligning some python tkinter/ttk widgets on a small gui I’m making.

  • 0

I’m having troubles aligning some python tkinter/ttk widgets on a small gui I’m making. My gui window has 4 “sections” which I’m representing with frames. I’m using the grid manager to populate each frame with it’s respective labels, entries, comboboxes, etc. Frame2 (top right, or Cartesian quadrant 1) is the biggest. To conform to symmetry, I set the sticky option of all my frames as N+S+E+W. This created 4 frames that filled the entire space, where the top half of the window has two frames of equal size, and the bottom half of the window has two frames of equal size. My frames have a relief (RAISED) so there is a visual separation of each one.

MY PROBLEM

My frame1 (Cartesian quadrant 2) is the smallest frame, but, with grid, it matches frame2 in size. This is good, I wanted this. However, frame1 also has way fewer widgets than frame 2, and instead of aligning all widgets at sticky = NW (like all my other frames), it centers all of the widgets first. This results in the widgets having a huge padded boarder in the frame, making it look very uneven. I want the widgets to be in the NW boarder of my frame1, and just have open space in the frame below them.

Is there a grid method, or a concept I’ve missed? I’ve dug through tonnes of examples/forums/etc looking for a similar description of this issue. I hope I was clear enough, my code isn’t in a very presentable state right now as I am just trying to generate my visual idea right now. If more info or code is needed I can post.

Thanks in advance,
Chris.enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T12:10:57+00:00Added an answer on May 22, 2026 at 12:10 pm

    It looks like you have six rows in your frame. Use grid_configure to set tne weight of the seventh row to be 1. Assuming all the other rows have a weight of zero, this extra row will expand to fill tne available space.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I used javascript for loading a picture on my website depending on which small
Basically, what I'm trying to create is a page of div tags, each has
I've got a string that has curly quotes in it. I'd like to replace
We're building an app, our first using Rails 3, and we're having to build

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.