Helpviewer/SiteInfo/SiteInfoDialog.py

branch
5_2_x
changeset 2123
7f02c9d4cd3b
parent 1861
6e8f19ebda9d
child 2303
0ed4ed026c16
equal deleted inserted replaced
2119:5f2f6d0ad1e6 2123:7f02c9d4cd3b
97 self.securityDetailsButton.setEnabled(False) 97 self.securityDetailsButton.setEnabled(False)
98 else: 98 else:
99 self.securityLabel.setStyleSheet(SiteInfoDialog.nokStyle) 99 self.securityLabel.setStyleSheet(SiteInfoDialog.nokStyle)
100 self.securityLabel.setText('<b>Connection is not encrypted.</b>') 100 self.securityLabel.setText('<b>Connection is not encrypted.</b>')
101 self.securityDetailsButton.setEnabled(False) 101 self.securityDetailsButton.setEnabled(False)
102 self.tabWidget.setTabEnabled(self.tabWidget.indexOf(self.securityTab), False)
102 103
103 # populate Media tab 104 # populate Media tab
104 images = frame.findAllElements("img") 105 images = frame.findAllElements("img")
105 for element in images: 106 for element in images:
106 src = element.attribute("src") 107 src = element.attribute("src")
130 @pyqtSlot() 131 @pyqtSlot()
131 def on_securityDetailsButton_clicked(self): 132 def on_securityDetailsButton_clicked(self):
132 """ 133 """
133 Private slot to show security details. 134 Private slot to show security details.
134 """ 135 """
135 self.tabWidget.setCurrentIndex(2) 136 self.tabWidget.setCurrentIndex(self.tabWidget.indexOf(self.securityTab))
136 137
137 @pyqtSlot(QTreeWidgetItem, QTreeWidgetItem) 138 @pyqtSlot(QTreeWidgetItem, QTreeWidgetItem)
138 def on_imagesTree_currentItemChanged(self, current, previous): 139 def on_imagesTree_currentItemChanged(self, current, previous):
139 """ 140 """
140 Private slot to show a preview of the selected image. 141 Private slot to show a preview of the selected image.

eric ide

mercurial