eric7/EricNetwork/EricSslInfoWidget.py

branch
eric7
changeset 8631
b2c4c2f3fda7
parent 8601
018c48d7ae3c
child 8638
218bc66da8c0
equal deleted inserted replaced
8630:5464b9c31cf9 8631:b2c4c2f3fda7
162 layout.addWidget(label, rows, 1) 162 layout.addWidget(label, rows, 1)
163 rows += 1 163 rows += 1
164 164
165 label = QLabel(self) 165 label = QLabel(self)
166 label.setWordWrap(True) 166 label.setWordWrap(True)
167 label.setText(self.tr( 167 if (
168 "It is encrypted using {0} at {1} bits, " 168 not cipher.encryptionMethod() or
169 "with {2} for message authentication and " 169 not cipher.usedBits() or
170 "{3} as key exchange mechanism.\n\n").format( 170 not cipher.authenticationMethod() or
171 cipher.encryptionMethod(), 171 not cipher.keyExchangeMethod()
172 cipher.usedBits(), 172 ):
173 cipher.authenticationMethod(), 173 label.setText(self.tr(
174 cipher.keyExchangeMethod())) 174 "The cipher data is incomplete or not known."
175 ))
176 else:
177 label.setText(self.tr(
178 "It is encrypted using {0} at {1} bits, "
179 "with {2} for message authentication and "
180 "{3} as key exchange mechanism.\n\n").format(
181 cipher.encryptionMethod(),
182 cipher.usedBits(),
183 cipher.authenticationMethod(),
184 cipher.keyExchangeMethod()
185 )
186 )
175 layout.addWidget(label, rows, 1) 187 layout.addWidget(label, rows, 1)
176 rows += 1 188 rows += 1
177 189
178 def showAt(self, pos): 190 def showAt(self, pos):
179 """ 191 """

eric ide

mercurial