@@ -39,7 +39,7 @@ reconfiguration.
39
39
40
40
This approach will make easier to create and share tools among
41
41
users. In the far future, we can even foresee a kind of Marketplace
42
- for `Tools ` where the most popular can be added into the main
42
+ for `` Tool `` \ s where the most popular can be added into the main
43
43
distribution.
44
44
45
45
Detailed description
@@ -53,12 +53,12 @@ example see https://github.com/matplotlib/matplotlib/issues/2694 also
53
53
the shortcuts are hardcoded and again not easily modifiable
54
54
https://github.com/matplotlib/matplotlib/issues/2699
55
55
56
- The proposed solution is to take the actions out of the `Toolbar ` and
57
- the shortcuts out of the `Canvas `. This actions and shortcuts will be
58
- in the form of `Tools ` .
56
+ The proposed solution is to take the actions out of the `` Toolbar `` and the
57
+ shortcuts out of the `` Canvas ``. The actions and shortcuts will be in the form
58
+ of `` Tool `` \ s .
59
59
60
- A new class `Navigation ` will be the bridge between the events from
61
- the ` Canvas ` and `Toolbar ` and redirect them to the appropriate `Tool `.
60
+ A new class `` Navigation `` will be the bridge between the events from the
61
+ `` Canvas `` and `` Toolbar `` and redirect them to the appropriate `` Tool ` `.
62
62
63
63
At the end the user interaction will be divided into three classes:
64
64
@@ -75,7 +75,8 @@ Implementation
75
75
ToolBase(object)
76
76
----------------
77
77
78
- Tools can have a graphical representation as the `SubplotTool ` or not even be present in the Toolbar as `Quit `
78
+ Tools can have a graphical representation as the ``SubplotTool `` or not even be
79
+ present in the Toolbar as ``Quit ``.
79
80
80
81
The `.ToolBase ` has the following class attributes for configuration at definition time
81
82
@@ -93,7 +94,8 @@ The following instance attributes are set at instantiation:
93
94
* keypress associated with the Tool Keymap
94
95
* Call to navigation.trigger_tool(name)
95
96
* set_figure(self, figure): Set the figure and navigation attributes
96
- * ``destroy(self, *args) ``: Destroy the `Tool ` graphical interface (if exists)
97
+ * ``destroy(self, *args) ``: Destroy the ``Tool `` graphical interface (if
98
+ exists)
97
99
98
100
**Available Tools **
99
101
* ToolQuit
@@ -137,7 +139,7 @@ NavigationBase
137
139
138
140
Defines the following attributes
139
141
* canvas:
140
- * keypresslock: Lock to know if the `canvas ` key_press_event` is
142
+ * keypresslock: Lock to know if the `` canvas `` `` key_press_event ` ` is
141
143
available and process it
142
144
* messagelock: Lock to know if the message is available to write
143
145
@@ -152,9 +154,9 @@ Public methods for **User use**:
152
154
associated with the tool
153
155
* set_tool_keymap(self, name, ``*keys ``): Set the keys for the given tool
154
156
* remove_tool(self, name): Removes tool from the navigation control.
155
- * add_tools(self, tools): Add multiple tools to `Navigation `
157
+ * add_tools(self, tools): Add multiple tools to `` Navigation ` `
156
158
* add_tool(self, name, tool, group=None, position=None): Add a tool
157
- to the Navigation
159
+ to the `` Navigation ``
158
160
* tool_trigger_event(self, name, sender=None, canvasevent=None,
159
161
data=None): Trigger a tool and fire the event
160
162
@@ -168,20 +170,20 @@ ToolbarBase
168
170
-----------
169
171
170
172
Methods for **Backend implementation **
171
- * add_toolitem(self, name, group, position, image, description,
172
- toggle): Add a toolitem to the toolbar. This method is a callback
173
- from ` tool_added_event ` (emitted by navigation)
174
- * set_message(self, s): Display a message on toolbar or in status bar
175
- * toggle_toolitem (self, name): Toggle the toolitem without firing
176
- event.
177
- * remove_toolitem(self, name): Remove a toolitem from the `Toolbar `
173
+
174
+ * `` add_toolitem(self, name, group, position, image, description, toggle) ``:
175
+ Add a toolitem to the toolbar. This method is a callback from
176
+ `` tool_added_event `` (emitted by navigation)
177
+ * `` set_message (self, s) ``: Display a message on toolbar or in status bar
178
+ * `` toggle_toolitem(self, name) ``: Toggle the toolitem without firing event.
179
+ * `` remove_toolitem(self, name) `` : Remove a toolitem from the `` Toolbar ` `
178
180
179
181
180
182
Backward compatibility
181
183
======================
182
184
183
185
For backward compatibility added 'navigation' to the list of values
184
- supported by :rc: `toolbar `, that is used for Navigation classes
186
+ supported by :rc: `toolbar `, that is used for `` Navigation `` classes
185
187
instantiation instead of the NavigationToolbar classes
186
188
187
189
With this parameter, it makes it transparent to anyone using the
0 commit comments