Commits

Aleš Erjavec committed fb465e4 Merge

Merge

  • Participants
  • Parent commits ccb4a5f, c202b2d

Comments (0)

Files changed (3)

Orange/OrangeCanvas/document/schemeedit.py

     def createNewNode(self, description, title=None, position=None):
         """
         Create a new :class:`.SchemeNode` and add it to the document.
-        The new node is constructed using :ref:`newNodeHelper` method.
+        The new node is constructed using :func:`newNodeHelper` method.
 
         """
         node = self.newNodeHelper(description, title, position)

Orange/OrangeCanvas/gui/toolbar.py

     to fit available space (this is done by setting fixed size on the
     button instances).
 
-    .. note:: the class does not support `QWidgetAction`s, separators, etc.
+    .. note:: the class does not support :class:`QWidgetAction` items,
+              separators, etc.
 
     """
 
         return QSize(width, height)
 
     def __layout(self, size):
-        """Layout the buttons to fit inside size.
+        """
+        Layout the buttons to fit inside size.
         """
         mygeom = self.geometry()
         mygeom.setSize(size)
 
 
 def uniform_layout_helper(items, contents_rect, expanding, spacing):
-    """Set fixed sizes on 'items' so they can be lay out in
-    contents rect anf fil the whole space.
+    """
+    Set fixed sizes on 'items' so they can be laid out in `contents_rect`
+    and fill the whole space. The items are laid out in
+    `expanding_direction` (:class:`Qt.Orientation`) with `spacing`
+    (:class:`int`)
 
     """
     if len(items) == 0:

Orange/OrangeCanvas/gui/toolgrid.py

     """
     A widget containing a grid of actions/buttons.
 
-    Actions can be added using standard :ref:`QWidget.addAction(QAction)`
-    and :ref:`QWidget.insertAction(int, QAction)` methods.
+    Actions can be added using standard :func:`QWidget.addAction(QAction)`
+    and :func:`QWidget.insertAction(int, QAction)` methods.
 
     Parameters
     ----------