35 from python_qt_binding
import loadUi
36 from python_qt_binding.QtWidgets
import QDialog
45 Dialog to change the subscribed topic and alter the message buffer size. 50 :param topics: list of topics to allow switching, ''list of string'' 51 :param limit: displayed in the message buffer size spin box, ''int'' 53 super(ConsoleSettingsDialog, self).
__init__()
54 ui_file = os.path.join(
55 rospack.get_path(
'rqt_console'),
'resource',
'console_settings_dialog.ui')
58 self.topic_combo.addItem(topic[0] +
' (' + topic[1] +
')', topic[0])
65 def query(self, topic, buffer_size):
66 index = self.topic_combo.findData(topic)
68 self.topic_combo.setCurrentIndex(index)
69 self.buffer_size_spin.setValue(buffer_size)
72 index = self.topic_combo.currentIndex()
74 topic = self.topic_combo.itemData(index)
75 buffer_size = self.buffer_size_spin.value()
76 return topic, buffer_size
def query(self, topic, buffer_size)
def __init__(self, topics, rospack)