GUI #3
30
GUI/main.py
30
GUI/main.py
|
@ -8,7 +8,35 @@ window = Tk()
|
|||
window.title("Choix EDS")
|
||||
window.geometry("1080x720")
|
||||
window.minsize(480, 360)
|
||||
window.wm_maxsize(1920, 1080)
|
||||
window.maxsize(1920, 1080)
|
||||
window.iconbitmap("GUI/bitmap.ico")
|
||||
window.config(background='#35363a')
|
||||
|
||||
#création d'une frame
|
||||
frame = Frame(window, bg='#35363a')
|
||||
|
||||
#ajouter le titre
|
||||
label_title = Label(frame, text="Aide au choix de la spécialité", font=("Arial", 31), bg='#35363a', fg='#d9d9d9')
|
||||
#afficher le titre
|
||||
label_title.pack()
|
||||
|
||||
#ajouter la description
|
||||
label_subtitle = Label(frame, text="Cette application est une assistance pour le choix des EDS et du parcours post BAC", font=("Arial", 16), bg='#35363a', fg='#a6a6a6')
|
||||
#afficher la description
|
||||
label_subtitle.pack()
|
||||
|
||||
#ajouter un champ de texte
|
||||
metier = Entry(frame, text="Votre futur métier", font=("Arial", 16), bg='#35363a', fg='#a6a6a6')
|
||||
#afficher le champ de texte
|
||||
metier.pack()
|
||||
|
||||
#[ajouter un bouton]
|
||||
onsp_button = Button(frame, text="onisep", font=("Arial", 16), bg='#737373', fg='#a6a6a6')
|
||||
#afficher le bouton
|
||||
onsp_button.pack()
|
||||
|
||||
#afficher la frame
|
||||
frame.pack(expand=YES)
|
||||
|
||||
#affichage dans la boucle main
|
||||
window.mainloop()
|
Loading…
Reference in a new issue