Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/layout.py
diff options
context:
space:
mode:
Diffstat (limited to 'layout.py')
-rw-r--r--layout.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/layout.py b/layout.py
index ec25ffb..c967527 100644
--- a/layout.py
+++ b/layout.py
@@ -52,7 +52,7 @@ class CalcLayout:
equ_sym = self._parent.ml.equ_sym
self.button_data = [
-# [x, y, width, label, bgcol, cb]
+ # [x, y, width, label, bgcol, cb]
[0, 0, 2, 1, u'\u2190', self.col_gray3, lambda w: self._parent.move_left()],
[2, 0, 2, 1, u'\u2192', self.col_gray3, lambda w: self._parent.move_right()],
[4, 0, 2, 1, u'\u232B', self.col_gray3, lambda w: self._parent.remove_character(-1)],
@@ -87,7 +87,7 @@ class CalcLayout:
def create_dialog(self):
"""Setup most of the dialog."""
-# Toolbar
+ # Toolbar
toolbar_box = ToolbarBox()
activity_button = ActivityToolbarButton(self._parent)
@@ -137,7 +137,7 @@ class CalcLayout:
toolbar_box.show_all()
self._parent.set_toolbar_box(toolbar_box)
-# Some layout constants
+ # Some layout constants
self.input_font = Pango.FontDescription('sans bold 12')
self.button_font = Pango.FontDescription('sans bold 16')
self.col_white = self.create_color(1.00, 1.00, 1.00)
@@ -147,13 +147,13 @@ class CalcLayout:
self.col_black = self.create_color(0.00, 0.00, 0.00)
self.col_red = self.create_color(1.00, 0.00, 0.00)
-# Big - Table, 16 rows, 10 columns, homogeneously divided
+ # Big - Table, 16 rows, 10 columns, homogeneously divided
self.grid = Gtk.Table(26, 11, True)
self.grid.set_border_width(0)
self.grid.set_row_spacings(0)
self.grid.set_col_spacings(4)
-# Left part: container and input
+ # Left part: container and input
vc1 = Gtk.VBox(False, 0)
hc1 = Gtk.HBox(False, 10)
eb = Gtk.EventBox()
@@ -188,7 +188,7 @@ class CalcLayout:
vc1.pack_start(eb2, expand=True, fill=True, padding=0)
self.grid.attach(vc1, 0, 7, 0, 6)
-# Left part: buttons
+ # Left part: buttons
self.pad = Gtk.Table(9, 6, True)
self.pad.set_row_spacings(12)
self.pad.set_col_spacings(12)
@@ -205,7 +205,7 @@ class CalcLayout:
eb.modify_bg(Gtk.StateType.NORMAL, self.col_black)
self.grid.attach(eb, 0, 7, 6, 26)
-# Right part: container and equation button
+ # Right part: container and equation button
hc2 = Gtk.HBox()
combo = ComboBox()
combo.append_item(0, _('All equations'))
@@ -217,7 +217,7 @@ class CalcLayout:
hc2.set_border_width(6)
self.grid.attach(hc2, 7, 11, 0, 2)
-# Right part: last equation
+ # Right part: last equation
self.last_eq = Gtk.TextView()
self.last_eq.set_editable(False)
self.last_eq.set_wrap_mode(Gtk.WrapMode.WORD_CHAR)
@@ -241,7 +241,7 @@ class CalcLayout:
self.grid.attach(self.last_eq, 7, 11, 2, 7)
-# Right part: history
+ # Right part: history
scrolled_window = Gtk.ScrolledWindow()
scrolled_window.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC)