| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,7 +17,7 @@ | |||
| 17 | 17 | ||
| 18 | 18 | ||
| 19 | 19 | class ListTools(ToolBase): | |
| 20 | - '''List all the tools controlled by `Navigation`''' | ||
| 20 | + '''List all the tools controlled by the `ToolManager`''' | ||
| 21 | 21 | # keyboard shortcut | |
| 22 | 22 | default_keymap = 'm' | |
| 23 | 23 | description = 'List Tools' | |
@@ -72,7 +72,8 @@ def trigger(self, *args, **kwargs): | |||
| 72 | 72 | # Remove the forward button | |
| 73 | 73 | fig.canvas.manager.toolmanager.remove_tool('forward') | |
| 74 | 74 | ||
| 75 | - # To add a custom tool to the toolbar at specific location | ||
| 75 | + # To add a custom tool to the toolbar at specific location inside | ||
| 76 | + # the navigation group | ||
| 76 | 77 | fig.canvas.manager.toolbar.add_tool('List', 'navigation', 1) | |
| 77 | 78 | ||
| 78 | 79 | plt.show() | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -99,7 +99,7 @@ def func(event) | |||
| 99 | 99 | ||
| 100 | 100 | def toolmanager_disconnect(self, cid): | |
| 101 | 101 | """ | |
| 102 | - Disconnect callback id cid | ||
| 102 | + Disconnect callback id *cid* | ||
| 103 | 103 | ||
| 104 | 104 | Example usage:: | |
| 105 | 105 | ||
@@ -196,9 +196,7 @@ def remove_tool(self, name): | |||
| 196 | 196 | ||
| 197 | 197 | def add_tool(self, name, tool, *args, **kwargs): | |
| 198 | 198 | """ | |
| 199 | - Add tool to `ToolManager` | ||
| 200 | - | ||
| 201 | - Add a tool to the tools controlled by ToolManager | ||
| 199 | + Add *tool* to `ToolManager` | ||
| 202 | 200 | ||
| 203 | 201 | If successful adds a new event `tool_trigger_name` where **name** is | |
| 204 | 202 | the **name** of the tool, this event is fired everytime | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -936,7 +936,7 @@ def trigger(self, sender, event, data=None): | |||
| 936 | 936 | self.window.present() | |
| 937 | 937 | ||
| 938 | 938 | ||
| 939 | - class DialogLineprops: | ||
| 939 | + class DialogLineprops(object): | ||
| 940 | 940 | """ | |
| 941 | 941 | A GUI dialog for controlling lineprops | |
| 942 | 942 | """ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments