def start_ui(locale, single_instance): load_gettext_locale(get_locale_path(), locale) main_app = QApplication(sys.argv) main_app.setWindowIcon(QIcon(get_resource_path('launcher.ico'))) main_win = TabbedWindow('CDDA Game Launcher') main_win.show() main_app.main_win = main_win main_app.single_instance = single_instance main_app.app_locale = locale sys.exit(main_app.exec_())
def __init__(self, parent=0, f=0): super(AboutDialog, self).__init__(parent, f) layout = QGridLayout() text_content = QTextBrowser() text_content.setReadOnly(True) text_content.setOpenExternalLinks(True) text_content.setSearchPaths([get_resource_path()]) layout.addWidget(text_content, 0, 0) self.text_content = text_content ok_button = QPushButton() ok_button.clicked.connect(self.done) layout.addWidget(ok_button, 1, 0, Qt.AlignRight) self.ok_button = ok_button layout.setRowStretch(0, 100) self.setMinimumSize(640, 450) self.setLayout(layout) self.set_text()