1   
 2   
 3   
 4   
 5   
 6   
 7   
 8   
 9   
10  from PyQt4 import QtCore, QtGui 
11   
13 -    def setupUi(self, ExceptHookDialog): 
 14          ExceptHookDialog.setObjectName("ExceptHookDialog") 
15          ExceptHookDialog.resize(542,290) 
16          self.verticalLayout = QtGui.QVBoxLayout(ExceptHookDialog) 
17          self.verticalLayout.setObjectName("verticalLayout") 
18          self.gridLayout = QtGui.QGridLayout() 
19          self.gridLayout.setSpacing(10) 
20          self.gridLayout.setObjectName("gridLayout") 
21          self.label = QtGui.QLabel(ExceptHookDialog) 
22          self.label.setObjectName("label") 
23          self.gridLayout.addWidget(self.label,0,0,1,1) 
24          self.closeButton = QtGui.QPushButton(ExceptHookDialog) 
25          self.closeButton.setObjectName("closeButton") 
26          self.gridLayout.addWidget(self.closeButton,0,1,1,1) 
27          self.exceptionLabel = QtGui.QLabel(ExceptHookDialog) 
28          font = QtGui.QFont() 
29          font.setWeight(75) 
30          font.setBold(True) 
31          self.exceptionLabel.setFont(font) 
32          self.exceptionLabel.setObjectName("exceptionLabel") 
33          self.gridLayout.addWidget(self.exceptionLabel,1,0,1,1) 
34          self.detailsButton = QtGui.QPushButton(ExceptHookDialog) 
35          self.detailsButton.setObjectName("detailsButton") 
36          self.gridLayout.addWidget(self.detailsButton,1,1,1,1) 
37          self.verticalLayout.addLayout(self.gridLayout) 
38          self.tracebackBrowser = QtGui.QTextBrowser(ExceptHookDialog) 
39          self.tracebackBrowser.setMinimumSize(QtCore.QSize(0,200)) 
40          self.tracebackBrowser.setObjectName("tracebackBrowser") 
41          self.verticalLayout.addWidget(self.tracebackBrowser) 
42   
43          self.retranslateUi(ExceptHookDialog) 
44          QtCore.QMetaObject.connectSlotsByName(ExceptHookDialog) 
 45   
47          ExceptHookDialog.setWindowTitle(QtGui.QApplication.translate("ExceptHookDialog", "Script error", None, QtGui.QApplication.UnicodeUTF8)) 
48          self.label.setText(QtGui.QApplication.translate("ExceptHookDialog", "An exception occured while running the script.", None, QtGui.QApplication.UnicodeUTF8)) 
49          self.closeButton.setText(QtGui.QApplication.translate("ExceptHookDialog", "&Close", None, QtGui.QApplication.UnicodeUTF8)) 
50          self.exceptionLabel.setText(QtGui.QApplication.translate("ExceptHookDialog", "Exception", None, QtGui.QApplication.UnicodeUTF8)) 
51          self.detailsButton.setText(QtGui.QApplication.translate("ExceptHookDialog", "&Details >>", None, QtGui.QApplication.UnicodeUTF8))