Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6250a8d

Browse filesBrowse files
committed
fix standard right click menu
1 parent 5934c5e commit 6250a8d
Copy full SHA for 6250a8d

File tree

1 file changed

+7
-7
lines changed
Filter options

1 file changed

+7
-7
lines changed

‎fastplotlib/ui/right_click_menus/_standard_menu.py

Copy file name to clipboardExpand all lines: fastplotlib/ui/right_click_menus/_standard_menu.py
+7-7Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,14 @@ def update(self):
8282
imgui.separator()
8383

8484
# autoscale, center, maintain aspect
85-
if imgui.menu_item(f"Autoscale", None, False)[0]:
85+
if imgui.menu_item(f"Autoscale", "", False)[0]:
8686
self.get_subplot().auto_scale()
8787

88-
if imgui.menu_item(f"Center", None, False)[0]:
88+
if imgui.menu_item(f"Center", "", False)[0]:
8989
self.get_subplot().center_scene()
9090

9191
_, maintain_aspect = imgui.menu_item(
92-
"Maintain Aspect", None, self.get_subplot().camera.maintain_aspect
92+
"Maintain Aspect", "", self.get_subplot().camera.maintain_aspect
9393
)
9494
self.get_subplot().camera.maintain_aspect = maintain_aspect
9595

@@ -98,7 +98,7 @@ def update(self):
9898
# toggles to flip axes cameras
9999
for axis in ["x", "y", "z"]:
100100
scale = getattr(self.get_subplot().camera.local, f"scale_{axis}")
101-
changed, flip = imgui.menu_item(f"Flip {axis} axis", None, scale < 0)
101+
changed, flip = imgui.menu_item(f"Flip {axis} axis", "", bool(scale < 0))
102102

103103
if changed:
104104
flip_axis(self.get_subplot(), axis, flip)
@@ -109,7 +109,7 @@ def update(self):
109109
for plane in ["xy", "xz", "yz"]:
110110
grid = getattr(self.get_subplot().axes.grids, plane)
111111
visible = grid.visible
112-
changed, new_visible = imgui.menu_item(f"Grid {plane}", None, visible)
112+
changed, new_visible = imgui.menu_item(f"Grid {plane}", "", visible)
113113

114114
if changed:
115115
grid.visible = new_visible
@@ -140,7 +140,7 @@ def update(self):
140140
# controller options
141141
if imgui.begin_menu("Controller"):
142142
_, enabled = imgui.menu_item(
143-
"Enabled", None, self.get_subplot().controller.enabled
143+
"Enabled", "", self.get_subplot().controller.enabled
144144
)
145145

146146
self.get_subplot().controller.enabled = enabled
@@ -163,7 +163,7 @@ def update(self):
163163

164164
clicked, _ = imgui.menu_item(
165165
label=name,
166-
shortcut=None,
166+
shortcut="",
167167
p_selected=current_type is controller_type_iter,
168168
)
169169

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.