From 31395d8794dfbcf9e93128f51056d14c41165ecf Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Thu, 28 Nov 2013 22:49:26 -0500 Subject: [PATCH] Fix typos in docs --- hscommon/gui/base.py | 8 ++++---- hscommon/gui/table.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hscommon/gui/base.py b/hscommon/gui/base.py index b258e3c9..7bc5c377 100644 --- a/hscommon/gui/base.py +++ b/hscommon/gui/base.py @@ -17,11 +17,11 @@ class GUIObject: """Cross-toolkit "model" representation of a GUI layer object. A ``GUIObject`` is a cross-toolkit "model" representation of a GUI layer object, for example, a - table. It acts as a cross-toolkit interface to multiple what we call here a :attr:`view`. That + table. It acts as a cross-toolkit interface to what we call here a :attr:`view`. That view is a toolkit-specific controller to the actual view (an ``NSTableView``, a ``QTableView``, etc.). In our GUIObject, we need a reference to that toolkit-specific controller because some - actions, have effects on it (for example, prompting it to refresh its data). The ``GUIObject`` - is typically instantiated before its :attr:`view`, that is why we set it as ``None`` on init. + actions have effects on it (for example, prompting it to refresh its data). The ``GUIObject`` + is typically instantiated before its :attr:`view`, that is why we set it to ``None`` on init. However, the GUI layer is supposed to set the view as soon as its toolkit-specific controller is instantiated. @@ -31,7 +31,7 @@ class GUIObject: .. attribute:: view - A reference to our toolkit-specific view controller. This view stats as ``None`` and has to + A reference to our toolkit-specific view controller. This view starts as ``None`` and has to be set "manually". There's two times at which we set the view property: On initialization, where we set the view that we'll use for our lifetime, and just before the view is deallocated. We need to unset our view at that time to avoid calls to a deallocated instance diff --git a/hscommon/gui/table.py b/hscommon/gui/table.py index c2fc5579..000027fd 100644 --- a/hscommon/gui/table.py +++ b/hscommon/gui/table.py @@ -18,7 +18,7 @@ class Table(MutableSequence, Selectable): In fact, the Table is very similar to :class:`~hscommon.gui.selectable_list.SelectableList` in practice and differs mostly in principle. Their difference lies in the nature of their items - theiy manage. With the Table, rows usually have many properties, presented in columns, and they + they manage. With the Table, rows usually have many properties, presented in columns, and they have to subclass :class:`Row`. Usually used with :class:`~hscommon.gui.column.Column`.