Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Convert.py
diff options
context:
space:
mode:
Diffstat (limited to 'Convert.py')
-rw-r--r--Convert.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/Convert.py b/Convert.py
index 0d71366..a1ef537 100644
--- a/Convert.py
+++ b/Convert.py
@@ -19,7 +19,15 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
class convert():
-
- def __init__(self, num, uni1, uni2 type_u, ):
+ def __init__(self, number, uni1, uni2, type_u, ):
super(convert, self).__init__()
+ self.list = {"long": {},
+ "vol": {},
+ "area": {},
+ "peso": {},
+ "vel": {},
+ "time": {}}
+
+ self.a = number * self.list[type_u][uni1]
+ return self.a * self.list[type_u][uni2]