in client/securedrop_client/gui/widgets.py [0:0]
def __init__(self) -> None:
super().__init__()
no_source_selected_instructions = QLabel(_("Select a source from the list, to:"))
no_source_selected_instructions.setObjectName("EmptyConversationView_instructions")
no_source_selected_instructions.setWordWrap(True)
bullet1 = QWidget()
bullet1_layout = QHBoxLayout()
bullet1_layout.setContentsMargins(0, 0, 0, 0)
bullet1.setLayout(bullet1_layout)
bullet1_bullet = QLabel("·") # nosemgrep: semgrep.untranslated-gui-string
bullet1_bullet.setObjectName("EmptyConversationView_bullet")
bullet1_layout.addWidget(bullet1_bullet)
bullet1_layout.addWidget(QLabel(_("Read a conversation")))
bullet1_layout.addStretch()
bullet2 = QWidget()
bullet2_layout = QHBoxLayout()
bullet2_layout.setContentsMargins(0, 0, 0, 0)
bullet2.setLayout(bullet2_layout)
bullet2_bullet = QLabel("·") # nosemgrep: semgrep.untranslated-gui-string
bullet2_bullet.setObjectName("EmptyConversationView_bullet")
bullet2_layout.addWidget(bullet2_bullet)
bullet2_layout.addWidget(QLabel(_("View or retrieve files")))
bullet2_layout.addStretch()
bullet3 = QWidget()
bullet3_layout = QHBoxLayout()
bullet3_layout.setContentsMargins(0, 0, 0, 0)
bullet3.setLayout(bullet3_layout)
bullet3_bullet = QLabel("·") # nosemgrep: semgrep.untranslated-gui-string
bullet3_bullet.setObjectName("EmptyConversationView_bullet")
bullet3_layout.addWidget(bullet3_bullet)
bullet3_layout.addWidget(QLabel(_("Send a response")))
bullet3_layout.addStretch()
no_source_selected_end_instructions = QLabel(
_("Or, select multiple sources with Ctrl+click.")
)
no_source_selected_end_instructions.setObjectName("EmptyConversationView_instructions")
no_source_selected_end_instructions.setWordWrap(True)
self._layout.addWidget(no_source_selected_instructions)
self._layout.addSpacing(self.NEWLINE_HEIGHT_PX)
self._layout.addWidget(bullet1)
self._layout.addWidget(bullet2)
self._layout.addWidget(bullet3)
self._layout.addSpacing(self.NEWLINE_HEIGHT_PX * 4)
self._layout.addWidget(no_source_selected_end_instructions)
self._layout.addSpacing(self.NEWLINE_HEIGHT_PX * 4)