About 147,000 results
Open links in new tab
    Upvotes24Top Answeredited Jan 19, 2015 at 7:23

    You can specify the spacing on columns/rows in the grid (including those that contain no widget) by running the grid_columnconfigure and grid_rowconfigure methods on the parent of the widgets (in this case, the parent would be root).

    For example, to s...

    import Tkinter as tk
    root = tk.Tk()

    label = tk.Label(root, text = 'Label')
    label.grid(column = 3, row = 8)

    button = tk.Button(root, text = 'Button')
    button.grid(column = 5, row = 1)

    root.grid_columnconfigure(4, minsize=100) # Here

    If you want to set a minimum size for all of your columns and rows, you ...

    Content Under CC-BY-SA license
    Was this helpful?
  1. python - Tkinter.grid spacing options? - Stack Overflow

    Tags:
    Tkinter Grid Spacing
    Tkinter Grid Size
    Change Space Between Columns Tkinter
  2. Tkinter Grid Geometry Manager - Python Tutorial

  3. Python Tkinter Grid (grid() method in Python Tkinter)

    Tags:
    Tkinter Grid Spacing
    Tkinter Grid Size
  4. Using the Grid Layout Manager in Tkinter - Python GUIs

    Oct 9, 2022 · How the grid layout manager works in Tkinter. Notice above how each widget can be positioned within "cells" by specifying their row and column values. Widgets can also span across multiple rows or columns.

    Tags:
    Grid Layout Manager
    Tkinter Entry Width Grid
    Python Tkinter Layout Grid
  5. Pack, Place and Grid layouts in Tkinter - Python GUIs

    Sep 18, 2019 · When you use the layout managers in Tkinter -- grid, place, or pack -- think about how simple or complex of a UI you need to design. There are certain situations where using one manager might make your window appear …

    Tags:
    Grid Tkinter
    Grid Layout Manager
  6. Mastering the Powerful Tkinter Grid Layout – TheLinuxCode

    Tags:
    Grid Tkinter
    Python
  7. TkDocs Tutorial - The Grid Geometry Manager

    Spanning Multiple Cells. Widgets can take up more than a single cell in the grid; to do this, we'll use the columnspan and rowspan options when gridding the widget. These are analogous to the "colspan" and "rowspan" attributes of …

    Tags:
    Tutorial
    Grid
  8. How to Position Widgets in Tkinter - with Grid, Place or …

    Oct 29, 2020 · Learn how to position widgets using three different geometric methods: pack, grid and place, with Python's GUI application Tkinter.

    Tags:
    Grid Tkinter
    Tkinter How To Place Widgets
  9. python - Tkinter grid spacing problems - Stack Overflow

  10. Python | grid() method in Tkinter - GeeksforGeeks

  11. Some results have been removed