1bcd703d69877fd2ba44192c154af92422e8b2d0
[minwii.git] / src / minwii / logapp.py
1 # -*- coding: utf-8 -*-
2 """
3 Interface graphique pour l'analyse des fichiers de log minwii.
4
5 $Id$
6 $URL$
7 """
8
9 from Tkinter import *
10 import tkFileDialog
11
12 class Application(Frame) :
13 def __init__(self, master=None) :
14 Frame.__init__(self, master)
15 self.grid()
16 self.createWidgets()
17
18 def createWidgets(self) :
19 self.chooseLogDir = Button(self, text="Parcourir…", command=self.openFileDialog)
20 self.chooseLogDir.grid()
21 self.quitButton = Button(self, text='Terminer', command=self.quit)
22 self.quitButton.grid()
23
24 def openFileDialog(self) :
25 print tkFileDialog.askopenfilename()
26
27 app = Application()
28 app.master.title("Analyseur des sessions MINWii")
29 app.mainloop()