From tkinter import from tkinter ttk import Combobox



Download 13,22 Kb.
Sana08.04.2022
Hajmi13,22 Kb.
#537142
Bog'liq
from tkinter import


from tkinter import *
from tkinter.ttk import Combobox
from tkinter.ttk import Checkbutton
from tkinter.ttk import Radiobutton
from tkinter import scrolledtext
from tkinter import messagebox

def clicked():

lbl.configure(text="Fayzullayev Avaz")
def clicked():
messagebox.showinfo('Заголовок', 'Текст')

window = Tk()


window.title("Sport tibbiyot ilmiy-amaliy markazi")
lbl = Label(window, text="Elektron anketalar", font=("Arial Bold", 15))
lbl.grid(column=0, row=0)
txt = Entry(window,width=20)
txt.grid(column=1, row=0)
window.geometry('800x600')
combo = Combobox(window)
combo['values'] = ("Terapevt", "Kardiolog", "Xirurg", "Onkolog","Urolog", "Ginekolog")
combo.current(1) # установите вариант по умолчанию
combo.grid(column=0, row=3)
chk_state = BooleanVar()
chk_state.set(True) # задайте проверку состояния чекбокса
chk = Checkbutton(window, text='Barchasi', var=chk_state)
chk.grid(column=0, row=4)
chk_state = IntVar()
chk_state.set(0) # False
chk_state.set(1) # True
rad1 = Radiobutton(window, text='Tashxislar', value=1)
rad2 = Radiobutton(window, text='Jarroxliklar', value=2)
rad3 = Radiobutton(window, text='Davolanish', value=3)
rad1.grid(column=0, row=5)
rad2.grid(column=1, row=5)
rad3.grid(column=3, row=5)
txt = scrolledtext.ScrolledText(window, width=40, height=10)
txt.grid(column=1, row=7)

btn = Button(window, text="Kirish!",font=("Arial Bold", 15), command=clicked)



btn.grid(column=10, row=0)
window.mainloop()
Download 13,22 Kb.

Do'stlaringiz bilan baham:




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

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish