“Tkinter” Kode Jawaban

Tkinter

from tkinter import * # import tkinter

window = Tk() #create a window

window.mainloop() #update window
Zany Zebra

Tkinter

from tkinter import *
from tkinter import ttk
root=Tk()
entry1=Entry(root,cursor="fleur",insertbackground="red")
entry1.pack()
Button(root,text="Get cursor type and colour", command=lambda: print(entry1['cursor'],entry1['insertbackground'])).pack()
root.mainloop()

Amateur developer

Tkinter

from tkinter import *
from tkinter import ttk
root = Tk()
frm = ttk.Frame(root, padding=10)
frm.grid()
ttk.Label(frm, text="Hello World!").grid(column=0, row=0)
ttk.Button(frm, text="Quit", command=root.destroy).grid(column=1, row=0)
root.mainloop()
Precious Pheasant

Tkinter

Tkinter is the biuld-in GUI toolkit of python. You can
easily make a graffical software using tkinter.
Water Coder

Tkinter

from tkinter import *
from tkinter import ttk
Hurt Herring

Tkinter

from tkinter import *
or
import tkinter
TheCoder1001

Jawaban yang mirip dengan “Tkinter”

Pertanyaan yang mirip dengan “Tkinter”

Lebih banyak jawaban terkait untuk “Tkinter” di Python

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya