1 2 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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
| try:
from Tkinter import *
import ttk
except:
from tkinter import *
from tkinter import ttk
def PDF():
pass
def Analyse():
print "valeur colonne A"
print "Ajout d'une valeur en colonne BCDE"
import ttk
root = Tk()
root.geometry("600x300")
B = Button( text ="PDF",background="orange", command = PDF)
B.place(x=0,y=0,width=100)
B = Button( text ="Clipboard",background="orange", command = PDF)
B.place(x=100,y=0,width=100)
B = Button( text ="MsWord",background="orange", command = PDF)
B.place(x=200,y=0,width=100)
B = Button( text ="Analyser",background="green", command = Analyse)
B.place(x=400,y=0,width=100)
tree = ttk.Treeview(root)
tree["columns"]=("1","2","3","4")
tree.column("1", width=200)
tree.column("2", width=60)
tree.column("3", width=60)
tree.column("4", width=60)
tree.heading("1", text="Titre")
tree.heading("2", text="Dia")
tree.heading("3", text="Dia ext")
tree.heading("4", text="Haut/Ep")
tree.place(x=0,y=30)
#tree.pack(fill=X)
tree.config(height=15)
ROWS = [('D11110001', 'titre1', 12), ('D11110002', 'titre 786', 23), ('D11110003', 'titre56', 27,45)]
for row in ROWS:
tree.insert('', 'end', text=row[1], values=row, tags=('mb3_click',))
tree.insert('', 1, text="D5311000", values=("Titre", "dia", "diaext", "Haut", 1))
root.mainloop() |
Partager