-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpython - Login.txt
71 lines (44 loc) · 1.67 KB
/
python - Login.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import tkinter as tk
from tkinter import *
from tkinter import messagebox
root = tk.Tk()
root.title( "kodlarinicinde 31-01-2019" )
screen_width = root.winfo_screenwidth()
screen_height = root.winfo_screenheight()
window_width = 320
window_height = 250
window_position_x = 0
window_position_y = 0
root.geometry("320x250")
frame = tk.Frame(root, bg='cyan')
frame.pack(side="bottom", fill='both', expand='no')
userLabel = Label(root,width=20,height=3,text="KULLANICI ADI :" , font="Times 10 bold")
userLabel.place(x=5 ,y=26)
passwordLabel = Label(root,width=20,height=3,text="PAROLA :" , font="Times 10 bold")
passwordLabel.place(x=5,y=66)
userLabel = Label(root,width=40,height=3,text="www.frknyldz.com" , font="Times 10 bold")
userLabel.place(x=5 ,y=206)
userName_edit = Entry(root,width=15)
userName_edit.place(x=150,y=40)
userName_edit.config(font="bold")
userName_edit.insert(END,"")
password_edit = Entry(root,width=15)
password_edit.place(x=150,y=80)
password_edit.config(font="bold")
password_edit.insert(END,"")
# Kullanýcý Kontrol Fonksiyonu
def UserControl():
if userName_edit.get() == 'kodlarinicinde' and password_edit.get() == 'python':
tk.messagebox.showinfo(" TEBRÝKLER !! \r\n", "UMARIM HAWKING YILDIZLARIN ARASINDA EÐLENÝYORDUR ")
else:
tk.messagebox.showinfo(
"TEKRAR DENE BAKALIM !\r\n", "HAYALÝMÝN BAÞLADIÐI YER BURASIYDI")
# Giriþ Alanlarýný Temizleme Fonksiyonu
def Clear():
userName_edit.delete('1.0',END)
password_edit.delete('1.0',END)
# Giriþ Butonu
controlButton = Button(root,text="GÝRÝÞ",width=30,command=UserControl)
controlButton.config(font="bold")
controlButton.place(x=10,y=150)
root.mainloop()