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

  • SEARCH
  • Home
  • 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 7873689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:35:15+00:00 2026-06-03T02:35:15+00:00

I have a GUI application in Python that has two buttons both aligned to

  • 0

I have a GUI application in Python that has two buttons both aligned to the left side, the code looks like this:

Button(root, text="blah").pack(side=LEFT)
Button(root, text="blah").pack(side=LEFT)

This code works great, but in the GUI how would you put these two buttons on different lines?

  • 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-06-03T02:35:16+00:00Added an answer on June 3, 2026 at 2:35 am

    (assuming you’re using Tkinter) I think you’d just pack it…

    e.g.

    Button(root,text="blah").pack()
    

    Note that generally, it is better practice to make the button and then pack it on separate lines.

    This sort of geometry can also be accomplished with grid.

    b1=Button(root,text="blah")
    b2=Button(root,text="blah")
    b1.grid(row=0,column=0)
    b2.grid(row=1,column=0)
    

    However, you shouldn’t mix grid and pack geometry manager…(pick one and stick with it)

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

Sidebar

Related Questions

Suppose I have a GUI-only application that runs on Windows and I'd like to
I'm writing a python application that has a glade gui. Using subprocess to execute
I have a Python application (with GUI, using PyQt4) that gets spawned by the
I have an application that uses Flash for the GUI and Python for the
I would like to have a python gui that loads different images from files.
I have complex GUI application written in Python and wxPython. I want it to
I have a GUI C++ application (Visual Studio 2008) that needs to be converted
I have a GUI application that needs to do something simple in the background
I have a console daemon that is run by a GUI application. When the
I'm developing a Python application; it has all its code in one package and

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.