示例#1
0
 def test_file(self):
     test_app = QApplication(sys.argv)  # noqa: F841
     test_dialog = GenericDialog("Generic Dialog File Path Test")
     test_dialog.add_file("File Path", "")
     test_dialog.add_callback(print)
示例#2
0
 def test_radio(self):
     test_app = QApplication(sys.argv)  # noqa: F841
     test_dialog = GenericDialog("Generic Dialog Radio Buttons Test")
     test_dialog.add_radio("Radio Label", ("Value 1", "Value 2", "Value 3"),
                           0)
     test_dialog.add_callback(print)
示例#3
0
 def test_enum(self):
     test_app = QApplication(sys.argv)  # noqa: F841
     test_dialog = GenericDialog("Generic Dialog Enum Test")
     test_dialog.add_enum("Enum Label", ("Value 1", "Value 2", "Value 3"),
                          0)
     test_dialog.add_callback(print)
示例#4
0
 def test_bool(self):
     test_app = QApplication(sys.argv)  # noqa: F841
     test_dialog = GenericDialog("Generic Dialog Boolean Test")
     test_dialog.add_bool("Bool Label", True)
     test_dialog.add_callback(print)
示例#5
0
 def test_float(self):
     test_app = QApplication(sys.argv)  # noqa: F841
     test_dialog = GenericDialog("Generic Dialog Float Test")
     test_dialog.add_float("Float Label", 1.0)
     test_dialog.add_float("Limit Test", 9.9999999999999999)
     test_dialog.add_callback(print)
示例#6
0
 def test_int(self):
     test_app = QApplication(sys.argv)  # noqa: F841
     test_dialog = GenericDialog("Generic Dialog Test")
     test_dialog.add_int("Integer Label", 0)
     test_dialog.add_callback(print)
示例#7
0
 def test_string(self):
     test_app = QApplication(sys.argv)  # noqa: F841
     test_dialog = GenericDialog("Generic Dialog String Test")
     test_dialog.add_string("String Label", "Initial Value")
     test_dialog.add_callback(print)
示例#8
0
 def test_label(self):
     test_app = QApplication(sys.argv)  # noqa: F841
     test_dialog = GenericDialog("Generic Dialog Label Test")
     test_dialog.add_label("This is a test label")
示例#9
0
 def simple_test(self):
     test_app = QApplication(sys.argv)  # noqa: F841
     GenericDialog("Generic Dialog Test")