Exemple #1
0
    def testText(self):
        PreferencesDialog.addTextPreference('textPreference1',
                                            label="Unfiltered",
                                            section="timeline",
                                            description="Anything can go in this box")

        PreferencesDialog.addTextPreference('textPreference2',
                                            label="Numbers only",
                                            section="timeline",
                                            description="This input validates its input with a regex",
                                            matches=r"^-?\d+(\.\d+)?$")
Exemple #2
0
    def testText(self):
        PreferencesDialog.addTextPreference('textPreference1',
            label="Unfiltered",
            section="Test",
            description="Anything can go in this box")

        PreferencesDialog.addTextPreference('textPreference2',
            label="Numbers only",
            section="Test",
            description="This input validates its input with a regex",
            matches=r"^-?\d+(\.\d+)?$")
Exemple #3
0
    def testText(self):
        section = list(PreferencesDialog.section_names.keys())[0]
        PreferencesDialog.addTextPreference('textPreference1',
                                            label="Unfiltered",
                                            section=section,
                                            description="Anything can go in this box")

        PreferencesDialog.addTextPreference('textPreference2',
                                            label="Numbers only",
                                            section=section,
                                            description="This input validates its input with a regex",
                                            matches=r"^-?\d+(\.\d+)?$")