Package node_manager_fkie :: Module echo_dialog :: Class EchoDialog
[frames] | no frames]

Class EchoDialog

source code

python_qt_binding.QtWidgets.QDialog --+
                                      |
                                     EchoDialog

Instance Methods
 
__init__(self, topic, msg_type, show_only_rate=False, masteruri=None, use_ssh=False, parent=None)
Creates an input dialog.
source code
 
closeEvent(self, event) source code
 
create_field_filter(self, echo_nostr, echo_noarr) source code
 
on_filter_clicked(self, checked) source code
 
on_no_str_checkbox_toggled(self, state) source code
 
on_no_arr_checkbox_toggled(self, state) source code
 
combobox_reduce_ch_activated(self, ch_txt) source code
 
combobox_reduce_digits_activated(self, ch_txt) source code
 
on_enable_msg_filter_checkbox_toggled(self, state) source code
 
on_combobox_chars_activated(self, chars_txt, update_display=True) source code
 
on_combobox_hz_activated(self, hz_txt, update_display=True) source code
 
on_combobox_count_activated(self, count_txt) source code
 
on_clear_btn_clicked(self) source code
 
on_topic_control_btn_clicked(self) source code
 
strify_message(self, val, indent='', time_offset=None, current_time=None, field_filter=None, fixed_numeric_width=None)
Convert value to string representation :param val: to convert to string representation.
source code
Class Variables
  MESSAGE_CHARS_LIMIT = 1000
  MESSAGE_LINE_LIMIT = 80
  MESSAGE_HZ_LIMIT = 10
  MAX_DISPLAY_MSGS = 25
  STATISTIC_QUEUE_LEN = 1000
  SHOW_BYTES = True
  SHOW_JITTER = True
  SHOW_STD_DEV = False
  SHOW_WINDOW_SIZE = False
This dialog shows the output of a topic.
  finished_signal = Signal(str)
finished_signal has as parameter the name of the topic and is emitted, if this dialog was closed.
  msg_signal = Signal(object, bool)
msg_signal is a signal, which is emitted, if a new message was received.
  text_hz_signal = Signal(str)
  text_signal = Signal(str)
text_signal is a signal, which is emitted, if a new text to display was received.
  text_error_signal = Signal(str)
text_error_signal is a signal, which is emitted, if a new error text to display was received.
  request_pw = Signal(object)
Method Details

__init__(self, topic, msg_type, show_only_rate=False, masteruri=None, use_ssh=False, parent=None)
(Constructor)

source code 

Creates an input dialog.

Parameters:
  • topic (str) - the name of the topic
  • msg_type (str) - the type of the topic
Raises:
  • Exception - if no topic class was found for the given type

strify_message(self, val, indent='', time_offset=None, current_time=None, field_filter=None, fixed_numeric_width=None)

source code 

        Convert value to string representation
        :param val: to convert to string representation. Most likely a Message.  ``Value``
        :param indent: indentation. If indent is set, then the return value will have a leading 
, ``str``
        :param time_offset: if not None, time fields will be displayed
          as deltas from  time_offset, ``Time``

        :param current_time: currently not used. Only provided for API
          compatibility. current_time passes in the current time with
          respect to the message, ``Time``
        :param field_filter: filter the fields that are strified for Messages, ``fn(Message)->iter(str)``
        :returns: string (YAML) representation of message, ``str``