Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
MEP22: Navigation by events#3652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
8cceed4
3118a5a
b4d5fcf
1e8af47
622cb95
d1a9de4
3f89d52
4f3c10b
6065daa
f6a2f19
05db3b6
c08fe56
b207a72
9266447
a53419a
704c717
5056729
e6a4e1e
8942c47
022de6f
2c9a195
cafe668
224f745
94c711e
67257e7
ffa65d6
6739ee0
d18206f
34a52c8
c2da483
44a9b0e
a2ed47f
0665890
411e6e2
d484ebd
75bf97b
6cc040b
0ff5997
af6734f
78513d2
377ff54
7dbbf58
dd66b57
67a414f
e415d8d
1213086
ba61dec
9f2ee2b
9da2b13
110253f
e2804ea
9a64b7e
64f947f
e8cd5d5
4bbcf4e
73a2661
1b83628
e4edd23
d4ac2fb
a7640ef
48a6971
8dafe09
a0695d0
328b169
aac4744
f09b9ef
def3a52
9ee7e25
5eae4e1
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -3396,7 +3396,7 @@ def remove_tool(self, name): | ||
# If is a toggle tool and toggled, untoggle | ||
if getattr(tool, 'toggled', False): | ||
self.trigger_tool(tool, 'navigation') | ||
self._remove_keys(name) | ||
@@ -3481,7 +3481,7 @@ def _tool_added_event(self, tool): | ||
def _handle_toggle(self, tool, sender, canvasevent, data): | ||
""" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Can you put docstrings on these with the expected types? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. done | ||
Toggle tools, need to untoggle prior to using other Toggle tool | ||
Called fromtrigger_tool | ||
Parameters | ||
---------- | ||
@@ -3514,7 +3514,7 @@ def _handle_toggle(self, tool, sender, canvasevent, data): | ||
# Other tool in the radio_group is toggled | ||
else: | ||
# Untoggle previously toggled tool | ||
self.trigger_tool(self._toggled[radio_group], | ||
self, | ||
canvasevent, | ||
data) | ||
@@ -3543,8 +3543,8 @@ def _get_cls_to_instantiate(self, callback_class): | ||
else: | ||
return None | ||
deftrigger_tool(self, name, sender=None, canvasevent=None, | ||
data=None): | ||
""" | ||
Trigger a tool and emit the tool_trigger_[name] event | ||
@@ -3594,7 +3594,7 @@ def _key_press(self, event): | ||
name = self._keys.get(event.key, None) | ||
if name is None: | ||
return | ||
self.trigger_tool(name, canvasevent=event) | ||
@property | ||
def tools(self): | ||
@@ -3709,7 +3709,7 @@ def trigger_tool(self, name): | ||
Name(id) of the tool triggered from within the container | ||
""" | ||
self.navigation.trigger_tool(name, sender=self) | ||
def add_toolitem(self, name, group, position, image, description, toggle): | ||
""" | ||