Пример #1
0
    def __init__(self, preset={}, parent=None):
        super(Action, self).__init__(parent)

        self.parent = parent
        self.preset = preset

        if check_preset(self.preset):
            self.buildUI()
Пример #2
0
    def __init__(self, preset={}, parent=None):
        super(VBoxLayout, self).__init__(parent)

        self.settings = Settings(SETTING_FILEPTH['app'], ST_FORMAT['ini'], self)
        self.parent = parent

        self.preset = preset
        if check_preset(self.preset):
            self.buildUI()
Пример #3
0
    def __init__(self, preset={}, parent=None):
        super(PlainTextEdit, self).__init__(parent)

        self.signals = SignalManager(self)
        self.settings = Settings(SETTING_FILEPTH['app'], ST_FORMAT['ini'], self)
        self.parent = parent
        self.preset = preset

        if check_preset(self.preset):
            self.buildUI()

        self.values = dict(w = self.width(), h = self.height(), x = self.x(), y = self.y())
Пример #4
0
    def __init__(self, preset={}, parent=None):
        super(Button, self).__init__(parent)

        self.signals = SignalManager(self)
        self.settings = Settings(SETTING_FILEPTH['app'], ST_FORMAT['ini'],
                                 self)
        self.values = dict(w=self.width(),
                           h=self.height(),
                           x=self.x(),
                           y=self.y())

        self.preset = preset

        if check_preset(self.preset):
            self.procedural()
Пример #5
0
    def __init__(self, txt=None, preset={}, parent=None):
        super(CheckBox, self).__init__(parent)

        self.signals = SignalManager(self)
        self.settings = Settings(SETTING_FILEPTH['app'], ST_FORMAT['ini'], self)
        self.parent = parent
        self.txt = txt
        if self.txt is not None:
            self.setText(self.txt)
        self.stateChanged.connect(self.saveState)

        self.values = dict(w=self.width(), h=self.height(), x=self.x(), y=self.y())

        self.preset = preset
        if check_preset(self.preset):
            self.buildUI()