36 from python_qt_binding
import loadUi
37 from python_qt_binding.QtWidgets
import QWidget
44 super(PyConsoleWidget, self).
__init__()
46 ui_file = os.path.join(rp.get_path(
'rqt_py_console'),
'resource',
'py_console_widget.ui')
47 loadUi(ui_file, self, {
'PyConsoleTextEdit': PyConsoleTextEdit})
48 self.setObjectName(
'PyConsoleWidget')
53 self.py_console.update_interpreter_locals(my_locals)
54 self.py_console.print_message(
55 'The variable "context" is set to the PluginContext of this plugin.')
56 self.py_console.exit.connect(context.close_plugin)