mirror of
https://github.com/wassname/sloth.git
synced 2026-08-11 11:26:22 +08:00
minor documentation fixes
This commit is contained in:
@@ -156,15 +156,15 @@ annotations that extend over image boundaries::
|
||||
Extending default values
|
||||
========================
|
||||
|
||||
In the usual case one overrides the default when defining a setting
|
||||
In the usual case one overrides the default when defining a configuration
|
||||
variable. In order to extend the default configuration and avoid overriding
|
||||
the default values, you can first import the default configuration and then
|
||||
append your custom mappings (remember that the configuration is a python
|
||||
module, you can basically execute any valid python code)::
|
||||
module, therefore you can execute any valid python code)::
|
||||
|
||||
from sloth.conf.default_config import LABELS
|
||||
|
||||
MYLABLES = ({
|
||||
MYLABELS = ({
|
||||
...
|
||||
})
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
# to specify a module path (as string) pointing to such a python callable.
|
||||
# It will then be automatically imported.
|
||||
|
||||
# LABLES
|
||||
# LABELS
|
||||
#
|
||||
# List/tuple of dictionaries that defines the label classes
|
||||
# that are handled by sloth. For each label, there should
|
||||
@@ -31,6 +31,8 @@
|
||||
# - 'attributes' : (optional) A dictionary that defines the
|
||||
# keys and possible values of this label
|
||||
# class.
|
||||
#
|
||||
# - 'text' : (optional) A label for the item's GUI button.
|
||||
LABELS = (
|
||||
{
|
||||
'attributes': {
|
||||
@@ -108,3 +110,4 @@ CONTAINERS = (
|
||||
PLUGINS = (
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -304,7 +304,7 @@ class LabelTool(QObject):
|
||||
|
||||
if next_image is not None:
|
||||
self.setCurrentImage(next_image)
|
||||
|
||||
|
||||
def gotoPrevious(self, step=1):
|
||||
if self._model is not None and self._current_image is not None:
|
||||
prev_image = self._current_image.getPreviousSibling(step)
|
||||
|
||||
Reference in New Issue
Block a user