About 554,000 results
Open links in new tab
  1. Create Python GUI with Tkinter

    Jun 14, 2022 · These rectangular windows with buttons, icons and menus are an intuitive way to get things done. In this tutorial, we'll focus on building our own GUIs using Python and Tkinter. We'll begin by reviewing some of the basics, including creating a window and learning how to display images and text.

  2. How to create a window with Python - Stack Overflow

    Jan 4, 2017 · The tkinter module is probably the most common Python GUI method. To make a button: from tkinter import * tk = Tk() btn = Button(tk, text="a clickable button", command()) btn.pack()

  3. How to make a window with buttons in python - Stack Overflow

    How do I create a function that makes a window with two buttons, where each button has a specified string and, if clicked on, returns a specified variable?

  4. Create First GUI Application using Python-Tkinter

    Aug 21, 2024 · To prototype a GUI with Tkinter, you can use the Tk() function to create a root window, and then use functions like Label, Button, and Entry to add widgets to the window and test different layouts and design ideas.

  5. Open a New Window with a Button in Python – Tkinter

    Apr 8, 2025 · In this guide, we will explore how to open a new window when a button is clicked using two approaches: Setting Up Tkinter. Tkinter comes pre-installed with Python. However, on some Linux distributions like Ubuntu, we may need to install it using: Creating a New Window Using a Function.

  6. python - Tkinter Canvas create_window () - Stack Overflow

    I'm trying to use Tkinter Canvas (self._canvas) to create window using create_window function. The window field for that function is a Tkinter Frame (self._tableFrame). Can someone please help me o...

  7. Create a New Window in Tk (tkinter) - Python Assets

    Mar 23, 2022 · Desktop applications can be made up of more than one window. The main window is created by the tk.Tk class and controls the life cycle of the application. Secondary windows, also known as popup or child windows, might be created on application startup or in response to an event (for example, a button press) via the tk.Toplevel class.

  8. Creating a GUI with Python: A Comprehensive Guide

    Apr 22, 2025 · Creating a basic window. The following code creates a basic Tkinter window: import tkinter as tk # Create the main window root = tk.Tk() # Set the window title root.title("My First GUI") # Start the main event loop root.mainloop() Adding widgets (labels, buttons, entry fields) Widgets are the building blocks of a GUI.

  9. How to Create a Window in Python Tkinter - javathecode.com

    To create a window in Python, you’ll need to use Tkinter, Python’s standard GUI toolkit. But why Tkinter? It’s simple yet powerful, perfect whether you're new to coding or seasoned enough to recognize efficient tools.

  10. Python GUI Development with Tkinter: Building Interactive …

    May 23, 2024 · In this guide, we'll explore how to use Tkinter to develop a variety of GUI applications, from simple forms to more complex interfaces. 1. Getting Started with Tkinter. Tkinter comes bundled with Python, making it easy to start building GUIs. The following example demonstrates a basic Tkinter window. 1.1. Creating a Basic Window:

  11. Some results have been removed
Refresh