예제 #1
0
    def stop(self):
        endSeconds = time.time()

        self.seconds = endSeconds - self.startSeconds

        FreeCAD.Console.PrintMessage('Finished: %s (%.3f s)\n' %
                                     (self.message, self.seconds))
        qtutils.processEvents()
    def execute(self, fp):
        startParameter = self.checkExecution()

        if startParameter is None:
            return

        worker = WorkerThread(self, fp, startParameter)
        worker.start()

        while worker.running:
            processEvents()
예제 #3
0
    def accept(self):
        FreeCADGui.Control.closeDialog()

        if self.scaleFactor != 1:
            self.InfoLabel.setText(
                'The image is recomputed. This might take a while...')
            qtutils.processEvents()

            originalPpi = self.freeCadObject.ppi

            # smaller ppi means larger image. So division not multiplication
            self.freeCadObject.ppi = originalPpi / self.scaleFactor

            lithophane_utils.recomputeView()
예제 #4
0
    def start(self):
        FreeCAD.Console.PrintMessage('Start: %s...\n' % (self.message))
        qtutils.processEvents()

        self.startSeconds = time.time()