Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/layout.py
diff options
context:
space:
mode:
authorReinier Heeres <reinier@heeres.eu>2007-09-07 14:04:24 (GMT)
committer Reinier Heeres <reinier@heeres.eu>2007-09-07 14:04:24 (GMT)
commitb0cca9f16f0a57ea07c8a27f4421311e96b41680 (patch)
tree99128b2f913aaaf3bd3f4bb6345f2cb1fca304e0 /layout.py
parentd804d55f4cdde65b74bb105fca60b0494211f4d5 (diff)
Basic plot() support!
Diffstat (limited to 'layout.py')
-rw-r--r--layout.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/layout.py b/layout.py
index 10992e4..4f748c2 100644
--- a/layout.py
+++ b/layout.py
@@ -39,7 +39,9 @@ class CalcLayout:
[0, 3, 1, '0', self.col_gray2, lambda w: self._parent.add_text('0')],
[1, 3, 1, '.', self.col_gray2, lambda w: self._parent.add_text('.')],
- [2, 3, 1, 'Ans', self.col_gray2, lambda w: self._parent.add_text('Ans')],
+
+# Deprecated -- functionality available through interface and labels
+# [2, 3, 1, 'Ans', self.col_gray2, lambda w: self._parent.add_text('Ans')],
[3, 0, 3, 'clear', self.col_gray1, lambda w: self._parent.clear()],
@@ -80,8 +82,6 @@ class CalcLayout:
self.grid.set_row_spacings(6)
self.grid.set_col_spacings(6)
- self._parent.set_canvas(self.grid)
-
# Left part: container and input
hc1 = gtk.HBox(False, 10)
label1 = gtk.Label(_('Label:'))
@@ -140,6 +140,9 @@ class CalcLayout:
self.history.set_border_width(6)
scrolled_window.add_with_viewport(self.history)
self.grid.attach(scrolled_window, 6, 10, 5, 16)
+
+ def show_it(self):
+ self._parent.set_canvas(self.grid)
self._parent.show_all()
def show_history(self, window_list):