Skip to content

Instantly share code, notes, and snippets.

@Franck1333
Created September 22, 2018 12:59
Show Gist options
  • Save Franck1333/c776d5022fb3672bb3ee232981fc096f to your computer and use it in GitHub Desktop.
Save Franck1333/c776d5022fb3672bb3ee232981fc096f to your computer and use it in GitHub Desktop.
How to use TKINTER // Test,Exemple
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#Aides : http://apprendre-python.com/page-tkinter-interface-graphique-python-tutoriel
#Aides : http://www.fil.univ-lille1.fr/~marvie/python/chapitre6.html
import os
import sys
from tkinter import *
fenetre = Tk()
#----------------------------------------------------------------------
label = Label(fenetre, text="Heure et Minute Actuel ici").grid(row=0, column=5)
#label.pack()
#----------------------------------------------------------------------
#----------------------------------------------------------------------
bouton_meteo=Button(fenetre, text="Meteo", command=fenetre.quit).grid(row=3, column=0)
#bouton_meteo.pack()
bouton_food=Button(fenetre, text="Quoi Manger ?", command=fenetre.quit).grid(row=3, column=10)
#bouton_food.pack()
bouton_music=Button(fenetre, text="Quoi ecouter ?", command=fenetre.quit).grid(row=4, column=10)
#bouton_music.pack()
bouton_place=Button(fenetre, text="Ou aller ?", command=fenetre.quit).grid(row=5, column=10)
#bouton_place.pack()
bouton=Button(fenetre, text="Fermer", command=fenetre.quit ).grid(row=13, column=13)
#bouton.pack()
#----------------------------------------------------------------------
#----------------------------------------------------------------------
fenetre.mainloop()
#----------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment