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
|
# -*- coding: utf-8 -*-
from Tkinter import *
import tkFileDialog, tkMessageBox, os, glob
Arpengis = Tk()
Arpengis.title("GPS - CONTROLE QUALITE")
Arpengis.geometry('600x200+250+250')
Arpengis.iconbitmap("H:\GPS.ico")
Arpengis.resizable(width=True,height=True)
titre = Label(Arpengis,text="CONTROLE QUALITE :",font = "Times 12 bold underline", underline = 1).pack()
titre1=Label(Arpengis,text="Création des différents dossiers propre aux controles des affaires de récolemet.").pack()
titre2=Label(Arpengis,text="Selection du dossier : ").place(x= 60, y=75)
titre3=Label(Arpengis,text="Dossier à controler : ").place(x= 60, y=100)
Selection=""
NomDossier = ""
titre4=Label(Arpengis,state=NORMAL, text= Selection, relief=GROOVE,width='50', bg="#A9A9A9").place(x=175, y=75)
titre5=Label(Arpengis,state=NORMAL, text= NomDossier, relief=GROOVE,width='50', bg="#A9A9A9").place(x=175, y=100)
def BOUTON_SELECTION():
global Selection
Selection= tkFileDialog.askdirectory()
return Selection
Selection= BOUTON_SELECTION
def BOUTON_SELECTION_NOM():
global Selection
NomDossier= os.path.basename(Selection)
return NomDossier
NomDossier=BOUTON_SELECTION_NOM
boutonSelection= Button(Arpengis,text="...", command=BOUTON_SELECTION, activebackground="#A0328C",font=('Times', 7),height=1).place(x= 530 , y=75)
boutonOui= Button(Arpengis,text=" Générer le dossier de contrôle ", command=Arpengis.destroy,activebackground="#A0328C",font=('Times', 10,'bold')).place(x= 100 , y=150)
boutonNon= Button(Arpengis,text=" Quitter ", command=Arpengis.destroy,activebackground="#A0328C",font=('Times', 10,'bold')).place(x=450, y=150)
Arpengis.mainloop()
[ATTACH=CONFIG]431823[/ATTACH] |
Partager