| 12
 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
 
 | fenetreSupport = Tk.Toplevel()
fenetreSupport.title("Fenetre")
fenetreSupport.configure(bg = couleur)
fenetreSupport.geometry("1200x800")
 
 
frameSupport = Tk.Frame(fenetreSupport, bg = couleur)
frameSupport.pack()
 
 
ascenseurY= Tk.Scrollbar(frameSupport,orient=Tk.VERTICAL)
ascenseurY.grid(row=0, column=1, sticky="ns")
 
ascenseurX= Tk.Scrollbar(frameSupport,orient=Tk.HORIZONTAL)
ascenseurX.grid(row=1, column=0, sticky="we")
 
canvas = Tk.Canvas(frameSupport, width = 450, height = 450, bg = couleur, yscrollcommand=ascenseurY.set, xscrollcommand=ascenseursX.set)
 
ascenseurY.config(command= canvas.yview)
ascenseurX.config(command= canvas.xview)
canvas.grid(row=0, column=0, sticky="news")
 
ascenseurY.config(command = canvas.yview)
ascenseurX.config(command = canvas.xview)
 
 
frameSupport.grid_rowconfigure(0, weight=1)
frameSupport.grid_columnconfigure(0, weight=1)
 
 
frameUtile = Tk.Frame(canvas)
frameUtile.pack() | 
Partager