Skip to content

Commit a4435a6

Browse files
committed
Added check to slider UI page to ensure a robot is selected
1 parent 6a26c04 commit a4435a6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

graphics/graphics_canvas.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,9 @@ def __setup_joint_sliders(self):
451451
"""
452452
Display the Teachpanel mode of the UI
453453
"""
454+
if len(self.__teachpanel) == 0:
455+
self.scene.append_to_caption("No robots available\n")
456+
return
454457
i = 1
455458
for joint in self.__teachpanel[self.__selected_robot]:
456459
if joint[self.__idx_qlim_min] == joint[self.__idx_qlim_max]:

0 commit comments

Comments
 (0)