From: pin Date: Tue, 16 Feb 2010 16:20:58 +0000 (+0000) Subject: refactoring. X-Git-Url: https://scm.cri.mines-paristech.fr/git/minwii.git/commitdiff_plain/8f28221ab5e8d3b05b7926503322e52df667a68a refactoring. git-svn-id: https://svn.cri.ensmp.fr/svn/minwii/trunk@36 fe552daf-6dbe-4428-90eb-1537e0879342 --- diff --git a/src/app/minwii.py b/src/app/minwii.py index 721031d..8345b54 100755 --- a/src/app/minwii.py +++ b/src/app/minwii.py @@ -7,10 +7,12 @@ $URL$ """ from pgu import gui as pguGui -from widgets import Home +from widgets.home import Home class MinWii(pguGui.Desktop): def __init__(self) : pguGui.Desktop.__init__(self) - self.run(Home()) \ No newline at end of file + + home = Home() + self.run(home) \ No newline at end of file diff --git a/src/app/widgets/__init__.py b/src/app/widgets/__init__.py new file mode 100755 index 0000000..792d600 --- /dev/null +++ b/src/app/widgets/__init__.py @@ -0,0 +1 @@ +# diff --git a/src/app/widgets.py b/src/app/widgets/home.py similarity index 95% rename from src/app/widgets.py rename to src/app/widgets/home.py index ab6763f..a56de62 100755 --- a/src/app/widgets.py +++ b/src/app/widgets/home.py @@ -67,8 +67,8 @@ class Home(Table) : self.tr() self.quitButton = Button(self.createLabel("Quitter")) self.td(self.quitButton) - self.goButton = Button(self.createLabel("Jouer")) - self.td(self.goButton,colspan=3) + self.playButton = Button(self.createLabel("Jouer")) + self.td(self.playButton,colspan=3) self.tr() self.td(Spacer(500,500))