36 from python_qt_binding
import loadUi
37 from python_qt_binding.QtWidgets
import QWidget
44 Widget for displaying interactive data related to text filtering.
45 :param parentfilter: buddy filter were data is stored, ''TimeFilter''
47 super(TextFilterWidget, self).
__init__()
48 ui_file = os.path.join(
49 rospack.get_path(
'rqt_console'),
'resource/filters',
'text_filter_widget.ui')
51 self.setObjectName(
'TextFilterWidget')
61 Setter for the text edit widget
62 :param text: text to be placed in text_edit, ''str''
64 self.text_edit.setText(text)
68 Setter for the text edit widget
69 :param text: text to be placed in text_edit, ''str''
71 self.regex_check_box.setChecked(checked)
83 If the widget had any dynamically adjustable data it would requery it
89 settings.set_value(
'text', self._parentfilter._text)
90 settings.set_value(
'regex', self._parentfilter._regex)
93 text = settings.value(
'text',
'')
97 regex = settings.value(
'regex')
in [
True,
'true']