“Kotak Input Tkinter” Kode Jawaban

cara menambahkan kotak input di tkinter

from tkinter import *

window = Tk()
# entry box
my_input = Entry()
my_input.pack()

window.mainloop()
Tejas Naik

Kotak Input Tkinter

import tkinter as tk

root= tk.Tk()

canvas1 = tk.Canvas(root, width = 400, height = 300)
canvas1.pack()

entry1 = tk.Entry (root) 
canvas1.create_window(200, 140, window=entry1)

def getSquareRoot ():  
    x1 = entry1.get()
    
    label1 = tk.Label(root, text= float(x1)**0.5)
    canvas1.create_window(200, 230, window=label1)
    
button1 = tk.Button(text='Get the Square Root', command=getSquareRoot)
canvas1.create_window(200, 180, window=button1)

root.mainloop()
Repulsive Reindeer

Buat label dan input Tkinter

	            there was 2 "=" here V you only need one
example3 = Entry(root, width=10, font="Calibri 10")
example4 = Label(root, width=10, font="Calibri 10")
Grieving Gannet

Entri Tkinter

from tkinter import *
root = Tk()
entry = Entry(root)
print(entry.get()) # Would print entry data in CL
Ross

cara membuat kotak enter di tkinter

canvas1 = tk.Canvas(root, width = 400, height = 300)
canvas1.pack()
Friendly Ferret

Jawaban yang mirip dengan “Kotak Input Tkinter”

Pertanyaan yang mirip dengan “Kotak Input Tkinter”

Lebih banyak jawaban terkait untuk “Kotak Input Tkinter” di Python

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya