Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
Source by www.codegrepper.com #
 
PREVIOUS NEXT
Tagged: #python #tkinter
ADD COMMENT
Topic
Name
4+1 =