Skip to content

Instantly share code, notes, and snippets.

@bbakirtas
Created September 11, 2023 13:35
Show Gist options
  • Save bbakirtas/f0c3ddf82baafbf752afe8ebe2ed6ff9 to your computer and use it in GitHub Desktop.
Save bbakirtas/f0c3ddf82baafbf752afe8ebe2ed6ff9 to your computer and use it in GitHub Desktop.
from tkinter import *
from tkinter.ttk import Combobox
from tkcalendar import DateEntry
master = Tk()
combo1= Combobox()
combo2= Combobox()
buton1=Button()
yazi1=Label
master.state("zoomed")
master.config(bg="#999B85")
yazı_1 = Label(text="BETON RAPORU!", bg="#999B85", fg="black", font="verdana 20 bold")
yazı_1.place(x=800, y=20, width=400, height=80)
frame = Frame(master, bg="#999B85")
frame.place(x=50, y=200, width=80, height=30)
tarih_secici1 = DateEntry(frame,locale="tr_TR")
tarih_secici1._top_cal.overrideredirect(True)
tarih_secici1.pack(side="left")
tarih_secici1.place(width=80, height=30)
frame2 = Frame(master, bg="white")
frame2.place(x=150, y=200, width=80, height=30)
tarih_secici2 = DateEntry(frame2,locale="tr_TR")
tarih_secici2._top_cal.overrideredirect(True)
tarih_secici2.pack(side="left")
tarih_secici2.place(width=80, height=30)
def raporSayfasi():
newWindow = Toplevel(master)
newWindow.title("Rapor Sayfası")
newWindow.geometry("200x200")
combo2gelen = combo2.get()
combo1gelen = combo1.get()
tarih_secici1gelen = tarih_secici1.get()
tarih_secici2gelen = tarih_secici2.get()
Label(newWindow,
text =combo2gelen).pack()
Label(newWindow,
text =combo1gelen).pack()
Label(newWindow,
text =tarih_secici1gelen).pack()
Label(newWindow,
text =tarih_secici2gelen).pack()
combo1.set("Beton Sınıfı Seçiniz")
combo1['values']=("C16", "C20", "C25", "C30", "C35", "C40", "C45")
combo1.place(x=50, y=235)
combo2.set("Beton Tipi")
combo2['values']=("Küp", "Silindir")
combo2.place(x=50, y=260)
buton1=Button(text="Raporla",command=raporSayfasi)
buton1.place(x=50, y=285)
buton1.pack
mainloop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment