Skip to content
Snippets Groups Projects
Commit a7e89ea5 authored by Aurélie  AKLI's avatar Aurélie AKLI
Browse files

Upload New File

parent aa99d44a
Branches
No related tags found
No related merge requests found
main.py 0 → 100644
import tkinter as tk
from tkinter import ttk
root = tk.Tk()
root.geometry("1200x700")
frame1 = tk.LabelFrame(root)
frame1.place(height=680,width=1180,relx=0.01,rely=0.01)
frame2 = tk.LabelFrame(root)
frame2.place(height=680 , width=320,relx=0.01,rely=0.01)
boutton1 = tk.Button(frame2 , text='start/stop')
boutton1.place(height=80,relwidth=1)
slider1 = tk.Scale(frame2,orient='horizontal',length=320,to=10)
slider1.pack(side='bottom')
boutton2 = tk.Button(root,text='reset')
boutton2.place(rely=0.88,width=70,relx=0.015)
boutton3 = tk.Button(root,text='-')
boutton3.place(rely=0.88,width=70,relx=0.075)
tv1 = ttk.Treeview(root)
tv1.place(rely=0.88,width=90,height=26,relx=0.135)
boutton4 = tk.Button(root,text='+')
boutton4.place(rely=0.88,width=70,relx=0.212)
onglet = ttk.Notebook ( root , width = 900 , height =700)
onglet.place(relx=0.28,rely=0.015,height=672,width=850)
photo1 = tk.PhotoImage(file="maphoto1.png")
img1 = tk.Canvas(onglet,width=550, height=300)
img1.create_image(150, 150, anchor=tk.NW, image=photo1)
onglet.add (img1, text = "Vue" )
photo2 = tk.PhotoImage(file="maphoto2.png")
img2 = tk.Canvas(onglet,width=550, height=300)
img2.create_image(150, 150, anchor=tk.NW, image=photo2)
onglet.add ( img2 , text = "Graphique" )
#root.mainloop()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment