refactoring.
authorpin <pin@fe552daf-6dbe-4428-90eb-1537e0879342>
Tue, 16 Feb 2010 16:20:58 +0000 (16:20 +0000)
committerpin <pin@fe552daf-6dbe-4428-90eb-1537e0879342>
Tue, 16 Feb 2010 16:20:58 +0000 (16:20 +0000)
git-svn-id: https://svn.cri.ensmp.fr/svn/minwii/trunk@36 fe552daf-6dbe-4428-90eb-1537e0879342

src/app/minwii.py
src/app/widgets/__init__.py [new file with mode: 0755]
src/app/widgets/home.py [moved from src/app/widgets.py with 95% similarity]

index 721031d..8345b54 100755 (executable)
@@ -7,10 +7,12 @@ $URL$
 """
 
 from pgu import gui as pguGui
 """
 
 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)
 
 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 (executable)
index 0000000..792d600
--- /dev/null
@@ -0,0 +1 @@
+#
similarity index 95%
rename from src/app/widgets.py
rename to src/app/widgets/home.py
index ab6763f..a56de62 100755 (executable)
@@ -67,8 +67,8 @@ class Home(Table) :
         self.tr()
         self.quitButton = Button(self.createLabel("Quitter"))
         self.td(self.quitButton)
         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))
 
         self.tr()
         self.td(Spacer(500,500))