Beispiel #1
0
 def start_animation(self):
     if config['disable_animations']: return
     if self.animation.state() != self.animation.Stopped or not self.isVisible():
         return
     size = self.normal_icon_size.width()
     smaller = int(0.7 * size)
     self.animation.setStartValue(QSize(smaller, smaller))
     self.animation.setEndValue(self.normal_icon_size)
     QMetaObject.invokeMethod(self.animation, 'start', Qt.QueuedConnection)
 def start_animation(self):
     if config['disable_animations']: return
     if self.animation.state(
     ) != self.animation.Stopped or not self.isVisible():
         return
     size = self.normal_icon_size.width()
     smaller = int(0.7 * size)
     self.animation.setStartValue(QSize(smaller, smaller))
     self.animation.setEndValue(self.normal_icon_size)
     QMetaObject.invokeMethod(self.animation, 'start', Qt.QueuedConnection)
Beispiel #3
0
    def dump(self, items, out_stream, pdf_metadata):
        self.metadata = pdf_metadata
        self._delete_tmpdir()

        self.render_queue = items
        self.combine_queue = []
        self.out_stream = out_stream

        QMetaObject.invokeMethod(self, "_render_book", Qt.QueuedConnection)
        self.loop.exec_()
    def dump(self, items, out_stream, pdf_metadata):
        self.metadata = pdf_metadata
        self._delete_tmpdir()

        self.render_queue = items
        self.combine_queue = []
        self.out_stream = out_stream

        QMetaObject.invokeMethod(self, "_render_book", Qt.QueuedConnection)
        self.loop.exec_()