About 19,400,000 results
Open links in new tab
  1. How to set Tkinter Window Size? Examples

    To set the size of Tkinter window, call geometry() function on the window with width and height string passed as argument. In this tutorial, we shall learn how to set a specific window size to our Tkinter GUI application in Python, using example programs.

  2. How to change window sizes/dimensions via Python

    Sep 5, 2015 · I want to write a program, preferably in Python, that will change the window size of any particular application I have open. E.g. say I have Notepad open and wish to make it 640x400 - my script would recognise the window and change its dimensions automatically.

  3. How to Set and Manage Window Size in Python Tkinter? - Python

    Feb 7, 2025 · Set and Manage Window Size in Python Tkinter. When creating a Tkinter window, you can set its initial size using the geometry method. The geometry method takes a string argument in the format "width×height" to specify the window’s dimensions. Here’s an example:

  4. Get window position & size with python - Stack Overflow

    How can I get and set the window (any windows program) position and size with python?

  5. python - How to change the window size after the program starts ...

    Jul 5, 2021 · Tkinter offers .maxsize() and .minsize() to fix the size of the root window. e.g. if you want that the window's width to not exceed 520, then just set the width in maxsize as 520. window.geometry('520x300') window.maxsize(520, 300)

  6. How to Set a Tkinter Window With a Constant Size?

    May 14, 2021 · In Tkinter, minsize() method is used to set the minimum size of the Tkinter window. Using this method a user can set window’s initialized size to its minimum size, and still be able to maximize and scale the window larger.

  7. How to Manage Widget Size and Resize in Python: A Guide and …

    When developing GUI applications in Python, managing widget size and resizing is an important factor in enhancing user experience. This article explains how to set widget sizes and resize them using Python’s major GUI frameworks, Tkinter and PyQt.

  8. How to Set Window Size in Tkinter - Pythoneo

    Mar 27, 2025 · The most common way to set the window size is by using the geometry() method. This method allows you to specify the width and height of the window in pixels, as well as its initial position on the screen.

  9. How to Set Tkinter Window Size - Python - StackHowTo

    Jan 12, 2022 · You can set the size of the Tkinter window by calling the geometry() function on the window with a “width x height” string passed as an argument. In this tutorial, we are going to see how to set a custom window size to our Tkinter GUI application in …

  10. Comprehensive Guide to Controlling Window Position and Size in Python

    These operations allow you to freely control the position of the window. How to Control Window Size. This section explains how to control the size of a window using Python. We will look at how to get the current size of a window and change it to a specified size. Getting Window Size. To get the current size of a window, use the pygetwindow library.

  11. Some results have been removed
Refresh