예제 #1
0
    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()
예제 #2
0
파일: OptionsDialog.py 프로젝트: seclib/urh
    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()
예제 #3
0
 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()
예제 #4
0
    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()
예제 #5
0
    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()
예제 #6
0
    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()
예제 #7
0
    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()
예제 #8
0
파일: OptionsDialog.py 프로젝트: jopohl/urh
    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()