From 985a2272a95619822a87e470cec3e333a33979dc Mon Sep 17 00:00:00 2001 From: pin Date: Thu, 22 Jul 2010 08:52:25 +0000 Subject: [PATCH 1/1] =?utf8?q?Commencement=20d'impl=C3=A9mentation=20de=20?= =?utf8?q?l'interface=20graphique=20pour=20l'analyse=20des=20fichiers=20de?= =?utf8?q?=20log.=20On=20utilise=20Tkinter,=20histoire=20de=20ne=20pas=20?= =?utf8?q?=C3=A0=20avoir=20=C3=A0=20installer=20des=20biblioth=C3=A8ques?= =?utf8?q?=20graphiques=20trop=20exotiques.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.cri.ensmp.fr/svn/minwii/trunk@283 fe552daf-6dbe-4428-90eb-1537e0879342 --- src/minwii/logapp.py | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 src/minwii/logapp.py diff --git a/src/minwii/logapp.py b/src/minwii/logapp.py new file mode 100755 index 0000000..1bcd703 --- /dev/null +++ b/src/minwii/logapp.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +""" +Interface graphique pour l'analyse des fichiers de log minwii. + +$Id$ +$URL$ +""" + +from Tkinter import * +import tkFileDialog + +class Application(Frame) : + def __init__(self, master=None) : + Frame.__init__(self, master) + self.grid() + self.createWidgets() + + def createWidgets(self) : + self.chooseLogDir = Button(self, text="Parcourir…", command=self.openFileDialog) + self.chooseLogDir.grid() + self.quitButton = Button(self, text='Terminer', command=self.quit) + self.quitButton.grid() + + def openFileDialog(self) : + print tkFileDialog.askopenfilename() + +app = Application() +app.master.title("Analyseur des sessions MINWii") +app.mainloop() -- 2.20.1