Notes
Notes - notes.io |
import time
from tkinter import *
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BOARD)
GPIO.setup(10, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
GPIO.setup(15, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
GPIO.setup(13, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
GPIO.setup(12, GPIO.OUT)
GPIO.setup(11, GPIO.OUT)
def button_yak(pin):
GPIO.output(pin,GPIO.HIGH)
time.sleep(1)
GPIO.output(pin,GPIO.LOW)
return
root = Tk()
root.geometry('300x300')
root.title("KIM 1 MILYON MILYAR ISTER")
label_1 = Label(root, text="Türkiyenin Baş Kenti Neresidir ?",width=30,font=("bold", 10))
label_1.place(x=0,y=50)
label_2 = Label(root, text="A_ISTANBUL",width=30,font=("bold", 10))
label_2.place(x=0,y=100)
label_3 = Label(root, text="B_KONYA",width=30,font=("bold", 10))
label_3.place(x=0,y=130)
label_4 = Label(root, text="C_ANKARA",width=30,font=("bold", 10))
label_4.place(x=0,y=160)
def pencere_kapat():
root.destroy()
Button(root, text='Son Kararım',width=10,bg='brown',fg='white',command = pencere_kapat).place(x=65,y=210)
root.mainloop()
while True:
if GPIO.input(10) == GPIO.HIGH:
button_yak(11)
if GPIO.input(15) == GPIO.HIGH:
button_yak(11)
if GPIO.input(13) == GPIO.HIGH:
button_yak(12)
break
root = Tk()
root.geometry('300x300')
root.title("KIM 1 MILYON MILYAR ISTER")
label_1 = Label(root, text="İstamnbul Kaç yılında Fetih Edilmiştir",width=30,font=("bold", 10))
label_1.place(x=0,y=50)
label_2 = Label(root, text="1453",width=30,font=("bold", 10))
label_2.place(x=0,y=100)
label_3 = Label(root, text="1400",width=30,font=("bold", 10))
label_3.place(x=0,y=130)
label_4 = Label(root, text="1071",width=30,font=("bold", 10))
label_4.place(x=0,y=160)
Button(root, text='Son Kararım',width=10,bg='brown',fg='white',command = pencere_kapat).place(x=65,y=210)
root.mainloop()
while True:
if GPIO.input(10) == GPIO.HIGH:
button_yak(12)
break
if GPIO.input(15) == GPIO.HIGH:
button_yak(11)
if GPIO.input(13) == GPIO.HIGH:
button_yak(11)
root = Tk()
root.geometry('300x300')
root.title("KIM 1 MILYON MILYAR ISTER")
label_1 = Label(root, text="Bir Günde Kaç Saat Vardır",width=30,font=("bold", 10))
label_1.place(x=0,y=50)
label_2 = Label(root, text="24",width=30,font=("bold", 10))
label_2.place(x=0,y=100)
label_3 = Label(root, text="12",width=30,font=("bold", 10))
label_3.place(x=0,y=130)
label_4 = Label(root, text="16",width=30,font=("bold", 10))
label_4.place(x=0,y=160)
Button(root, text='Son Kararım',width=10,bg='brown',fg='white',command = pencere_kapat).place(x=65,y=210)
root.mainloop()
while True:
if GPIO.input(10) == GPIO.HIGH:
button_yak(12)
break
if GPIO.input(15) == GPIO.HIGH:
button_yak(11)
if GPIO.input(13) == GPIO.HIGH:
button_yak(11)
root = Tk()
root.geometry('300x300')
root.title("KIM 1 MILYON MILYAR ISTER")
label_1 = Label(root, text="Türkiyenin Şuanki Cumhur Başkanı Kimdir",width=50,font=("bold", 10))
label_1.place(x=0,y=50)
label_2 = Label(root, text="Demet Akalın",width=30,font=("bold", 10))
label_2.place(x=0,y=100)
label_3 = Label(root, text="Recep Tayip Erdoğan",width=30,font=("bold", 10))
label_3.place(x=0,y=130)
label_4 = Label(root, text="Donald Trump",width=30,font=("bold", 10))
label_4.place(x=0,y=160)
Button(root, text='Son Kararım',width=10,bg='brown',fg='white',command = pencere_kapat).place(x=65,y=210)
root.mainloop()
while True:
if GPIO.input(10) == GPIO.HIGH:
button_yak(11)
if GPIO.input(15) == GPIO.HIGH:
button_yak(12)
break
if GPIO.input(13) == GPIO.HIGH:
button_yak(11)
root = Tk()
root.geometry('500x500')
root.title("KIM 1 MILYON MILYAR ISTER")
label_1 = Label(root, text="How I Met Your Mother Konusu Nedir",width=40,font=("bold", 10))
label_1.place(x=0,y=50)
label_2 = Label(root, text="Anneleriyle Nasıl Tanıştıgını Anlatır",width=40,font=("bold", 10))
label_2.place(x=0,y=100)
label_3 = Label(root, text="Bir Başyapıt Dram",width=30,font=("bold", 10))
label_3.place(x=0,y=130)
label_4 = Label(root, text="Galaksideki Mother Gezegenlerini Anlatır",width=40,font=("bold", 10))
label_4.place(x=0,y=160)
Button(root, text='Son Kararım',width=10,bg='brown',fg='white',command = pencere_kapat).place(x=65,y=210)
root.mainloop()
while True:
if GPIO.input(10) == GPIO.HIGH:
button_yak(12)
break
print("Yarışma Sona Ermiştir")
if GPIO.input(15) == GPIO.HIGH:
button_yak(11)
if GPIO.input(13) == GPIO.HIGH:
button_yak(11)
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team
