Answers for "tkinter pyhton"

0

python tkinter

import tkinter as tk #import the tkinter module as tk

core = tk.Tk() #makes the core (or root)
mylabel = tk.Label(core, text="Hello world!") #makes a label
mylabel.grid(row=0, column=1) #places the object in a virtual grid
                   
tk.Pack() #Pack the object(s)
core.mainloop()#Make the application a loop (needed)
Posted by: Guest on September-18-2021
2

tkinter

Tkinter is the biuld-in GUI toolkit of python. You can
easily make a graffical software using tkinter.
Posted by: Guest on August-27-2021
-1

python tkinter

Tkinter is used to create windows in python

from tkinter import * #import tkinter

window = Tk() #create the window
window.title("Title") #Set window title
window.geoemtry("400x400") #Adjusts window to 400x400px

window.mainloop() #Updates window
Posted by: Guest on February-09-2022

Python Answers by Framework

Browse Popular Code Answers by Language