[Sugar-devel] [PATCH] Changed symbols on the calculate activity button. (Ticket #2161)
Ishan Bansal
ishan at seeta.in
Thu Sep 30 12:03:21 EDT 2010
New symbols defined for the calculator activity in order to give a calculator
look to activity.
---
layout.py | 2 +-
mathlib.py | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/layout.py b/layout.py
index d439a3a..df7a7c0 100644
--- a/layout.py
+++ b/layout.py
@@ -74,7 +74,7 @@ class CalcLayout:
[4, 2, 1, div_sym, self.col_gray3, lambda w: self._parent.add_text(div_sym)],
[5, 2, 1, ')', self.col_gray3, lambda w: self._parent.add_text(')')],
- [3, 3, 3, _('Enter'), self.col_gray1, lambda w: self._parent.process()],
+ [3, 3, 3, ('='), self.col_gray1, lambda w: self._parent.process()],
]
def create_dialog(self):
diff --git a/mathlib.py b/mathlib.py
index b9bce1e..d6f903d 100644
--- a/mathlib.py
+++ b/mathlib.py
@@ -81,12 +81,12 @@ class MathLib:
# TRANS: multiplication symbol (default: '*')
self.mul_sym = _('mul_sym')
if len(self.mul_sym) == 0 or len(self.mul_sym) > 3:
- self.mul_sym = '*'
+ self.mul_sym = 'x'
# TRANS: division symbol (default: '/')
self.div_sym = _('div_sym')
if len(self.div_sym) == 0 or len(self.div_sym) > 3:
- self.div_sym = '/'
+ self.div_sym = '÷'
def set_format_type(self, fmt, digit_limit=9):
self.format_type = fmt
--
1.7.0.4
More information about the Sugar-devel
mailing list