This repository was archived by the owner on Jul 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
52 lines (46 loc) · 1.26 KB
/
app.py
File metadata and controls
52 lines (46 loc) · 1.26 KB
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
# # # Modules
#
import sys
import os
import tkinter
from tkinter import *
#
# # # Fin des modules
# # # Commands
#
def CreateQRCode():
os.system('create_qrcode.py')
def ReadQRCode():
os.system('read_qrcode.py')
#
# # # Fin des commands
# # # Onglet
#
window = Tk()
window.title("QRCode - by Zerbaib")
window.geometry("720x480")
window.minsize(480, 360)
window.iconbitmap("logo.ico")
window.config(background="#9EDBF8")
frame = Frame(window, bg="#9EDBF8")
#
# # # Fin de l'onglet
# # # Text
#
label_title = Label(frame, text="Bienvenue sur QRCode", font=("Courrier", 40), bg="#9EDBF8", fg="white")
label_subtitle = Label(frame, text="QRCode est un logiciel qui permet de cree et de lire des QRCode", font=("Courrier", 25), bg="#9EDBF8", fg="white")
label_title.pack()
label_subtitle.pack()
#
# # # Fin du text
# # # Boutons
#
cr_qr = Button(frame, text="Pour cree un qrcode click moi", font=("Courrier", 25), bg="white", fg="#9EDBF8",command= CreateQRCode)
re_qr = Button(frame, text="Pour lire un qrcode click moi", font=("Courrier", 25), bg="white", fg="#9EDBF8",command= ReadQRCode)
cr_qr.pack(pady=20, fill=X)
re_qr.pack(pady=20, fill=X)
#
# # # Fin des bontons
frame.pack(expand=YES)
window.mainloop()
input()