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
|
import wx
class MaFenetre(wx.Frame):
def __init__(self, titre):
wx.Frame.__init__(self, None, -1, title = titre, pos = (x, y), size = (x, y))
panel = wx.Panel(self,-1)
text = wx.StaticText(panel, 1,"Cliquer sur ok pour trier les donner du fichier CSV dans tableau.", style = wx.ALIGN_CENTER)
bouton = wx.Button(panel,-1,label = "Départ", pos = (x, y))
self.Bind(wx.EVT_BUTTON,self.OnClick, bouton)
def OnClick(self, event):
self.Destroy()
#################### La tu envois vers ton fichier qui contiendra la lecture du fichier CSV et l'affichage ou la réécriture du fichier CSV.
tonnomdefichier.tafonction(Eventuellementlesparamètres)
####################
class MonApp(wx.App):
def OnInit(self):
fen = MaFenetre("Trie fichier CSV")
fen.Show(True)
self.SetTopWindow(fen)
return True
app = MonApp()
app.MainLoop() |
Partager