Example #1
0
 def __init__(self):
     QObject.__init__(self)
     Mode.__init__(self)
     self._root_node = None
     self._vars = []
     self._paragraphs = []
     self._runner = DelayJobRunner()
Example #2
0
 def __init__(self):
     QObject.__init__(self)
     Mode.__init__(self)
     self._previous_cursor_start = -1
     self._previous_cursor_end = -1
     self._definition = None
     self._deco = None
     self._pending = False
     self.action_goto = QAction(_("Go to assignments"), self)
     self.action_goto.setShortcut('F7')
     self.action_goto.triggered.connect(self.request_goto)
     self.word_clicked.connect(self.request_goto)
     self._timer = DelayJobRunner(delay=200)
Example #3
0
 def __init__(self):
     QObject.__init__(self)
     Mode.__init__(self)
     self._previous_cursor_start = -1
     self._previous_cursor_end = -1
     self._definition = None
     self._deco = None
     self._pending = False
     self.action_goto = QAction(_("Go to assignments"), self)
     self.action_goto.setShortcut('F7')
     self.action_goto.triggered.connect(self.request_goto)
     self.word_clicked.connect(self.request_goto)
     self._timer = DelayJobRunner(delay=200)
Example #4
0
    def __init__(self, git_repo, errors=ErrorHandler(), **kwargs):
        QObject.__init__(self)

        self._root_ = git_repo.root_path
        self._env_ = BaseWebsiteBuildEnvironment(git_repo.root_path) if 'config' not in kwargs else kwargs['config']
        self._errors_ = errors
        self._repo_ = git_repo
        if not self._repo_.isValid():
            errors.show("Provided path is not a valid git repository")
            raise Exception("Wrong Path to Git Repository")

        self._active_file_ = ""
        self._content_ = ""
        self.error_raised.connect(errors.show)
Example #5
0
    def __init__(self, q):
        QObject.__init__(self)

        self._position = 0
        self._sliderShape = QRectF()
        self._gradient = QLinearGradient()
        self._gradient.setSpread(QGradient.PadSpread)
        self._qPointer = q
        self.animation = QPropertyAnimation(self)
        self.animation.setTargetObject(self)
        self.animation.setPropertyName("position")
        self.animation.setStartValue(0)
        self.animation.setEndValue(1)
        self.animation.setDuration(300)
        self.animation.setEasingCurve(QEasingCurve.InOutExpo)
Example #6
0
 def __init__(self):
     QObject.__init__(self)
     self.list = []
Example #7
0
 def __init__(self):
     if os.environ['QT_API'] in (PYQT4_API + PYSIDE_API):
         QObject.__init__(self)
         Mode.__init__(self)
     else:
         super().__init__()