1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| #Programation du plan/menu
from tkinter import *
import inspect, os
os.chdir(os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))))
def maire():
fen1=Tk()
fen1.title("Discussion avec le Maire")
cadre = Frame(fen1, width =1200, height =900, bg="aliceblue")#module visant à definir la fenêtre dans sa taille
cadre.pack()
canevas_central = Canvas(fen1, width =800, height =500, bg ='white')
photo_central = PhotoImage(file ='sherlock.gif')
item1 = canevas_central.create_image(100, 100, image =photo_central)
fen.mainloop() |
Partager