Module excepthook_ui
[hide private]
[frames] | no frames]

Source Code for Module excepthook_ui

 1  # -*- coding: utf-8 -*- 
 2   
 3  # Form implementation generated from reading ui file 'excepthook.ui' 
 4  # 
 5  # Created: Sun Jun 15 01:19:42 2008 
 6  #      by: PyQt4 UI code generator 4.4.2 
 7  # 
 8  # WARNING! All changes made in this file will be lost! 
 9   
10  from PyQt4 import QtCore, QtGui 
11   
12 -class Ui_ExceptHookDialog(object):
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
46 - def retranslateUi(self, ExceptHookDialog):
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))
52 53 54 if __name__ == "__main__": 55 import sys 56 app = QtGui.QApplication(sys.argv) 57 ExceptHookDialog = QtGui.QDialog() 58 ui = Ui_ExceptHookDialog() 59 ui.setupUi(ExceptHookDialog) 60 ExceptHookDialog.show() 61 sys.exit(app.exec_()) 62