Tkinter pack metodi


x, y - gorizontal va vertikal ofset. Misol: Kursorni


Download 49.94 Kb.
bet4/4
Sana21.01.2023
Hajmi49.94 Kb.
#1106954
1   2   3   4
Bog'liq
8-mavzu. Geometrik ma

x, y - gorizontal va vertikal ofset.



Misol:




Kursorni turli tugmachalarda harakatlantirish orqali quyidagi misolni sinab ko'ring !!!


from tkinter import *
from tkinter.messagebox import *


top = Tk()
def helloCallBack():
showinfo( "Hello Python", "Hello World")


B = Button(top, text ="Hello", command = helloCallBack) B.pack()
B.place(bordermode=OUTSIDE, height=100, width=100)


top.mainloop()

Download 49.94 Kb.

Do'stlaringiz bilan baham:
1   2   3   4




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling