register rand_color for use in console

This commit is contained in:
jdegenstein
2022-10-28 23:36:26 -05:00
committed by GitHub
parent fbbb1fd7b6
commit dbc90c2724

View File

@@ -299,6 +299,7 @@ class MainWindow(QMainWindow,MainMixin):
#CQ related items #CQ related items
console.push_vars({'show' : obj_tree.addObject, console.push_vars({'show' : obj_tree.addObject,
'show_object' : obj_tree.addObject, 'show_object' : obj_tree.addObject,
'rand_color' : self.components['debugger']._rand_color,
'cq' : cq, 'cq' : cq,
'log' : Logger(self.name).info}) 'log' : Logger(self.name).info})