Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristhofer Travieso <cristhofert97@gmail.com>2012-06-21 21:14:48 (GMT)
committer Cristhofer Travieso <cristhofert97@gmail.com>2012-06-21 21:14:48 (GMT)
commit80e766fafd419a6b91daef2dbb71c157e2f17064 (patch)
treeef406bcbe1a96de684147c648f8a4ff005b3221a
parent03ecf5522e1d785b7b8cf911269c3a39eb8fb9e5 (diff)
Organise el archivo Conver.py y cree una clase Convert
-rw-r--r--Activity.py17
-rw-r--r--Convert.py5
2 files changed, 6 insertions, 16 deletions
diff --git a/Activity.py b/Activity.py
index 4af0041..74b5b5e 100644
--- a/Activity.py
+++ b/Activity.py
@@ -23,8 +23,6 @@ import json
from gettext import gettext as _
import gtk
-from Converter import Converter
-
from sugar import profile
from sugar import mime
from sugar.activity import activity
@@ -108,18 +106,7 @@ class Canvas(gtk.VBox):
def __init__(self):
gtk.VBox.__init__(self)
- self._hbox = gtk.VBox()
-
- self.combo1 = gtk.Combo()
-
- self.combo2 = gtk.Combo()
-
- self.add(gtk.Label("Comvertir"))
- self._hbox(gtk.Label("De "))
- self._hbox.add(self.combo1)
- self._hbox.add(gtk.Label(" a "))
- self._hbox.add(self.combo2)
-
- self.add(self._hbox)
+ self.add(gtk.Label("Of "))
+ self.add(gtk.Label("to"))
self.show_all()
diff --git a/Convert.py b/Convert.py
index ec3436d..0d71366 100644
--- a/Convert.py
+++ b/Convert.py
@@ -18,5 +18,8 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-import gtk
+class convert():
+
+ def __init__(self, num, uni1, uni2 type_u, ):
+ super(convert, self).__init__()