def on_btn_view_build_log_clicked(self): if not self.build_log: return dialog = util.create_textbox_dialog(self.build_log, "Build log", parent=self) dialog.show()
def on_btn_health_check_clicked(self): info = ExtensionHelper.perform_health_check() if util.get_windows_lib_path(): info += "\n\n[INFO] Used DLLs from " + util.get_windows_lib_path() d = util.create_textbox_dialog(info, "Health check for native extensions", self) d.show()
def test_create_textbox_dialog(self): dialog = util.create_textbox_dialog("Test content", "Test title", parent=self.form) self.assertEqual(dialog.windowTitle(), "Test title") self.assertEqual(dialog.layout().itemAt(0).widget().toPlainText(), "Test content") dialog.close()
def on_btn_health_check_clicked(self): info = ExtensionHelper.perform_health_check() info += "\n" + BackendHandler.perform_soundcard_health_check() if util.get_windows_lib_path(): info += "\n\n[INFO] Used DLLs from " + util.get_windows_lib_path() d = util.create_textbox_dialog(info, "Health check for native extensions", self) d.show()
def on_double_clicked(self, index: QModelIndex): file_path = self.model().get_file_path(index) # type: str if file_path.endswith(".txt"): try: content = open(file_path, "r").read() except: return d = util.create_textbox_dialog(content, file_path, self) d.show()
def on_label_device_missing_info_link_activated(self, link: str): if link == "health_check": info = ExtensionHelper.perform_health_check() info += "\n" + BackendHandler.perform_soundcard_health_check() if util.get_shared_library_path(): if sys.platform == "win32": info += "\n\n[INFO] Used DLLs from " + util.get_shared_library_path() else: info += "\n\n[INFO] Used shared libraries from " + util.get_shared_library_path() d = util.create_textbox_dialog(info, "Health check for native extensions", self) d.show()