def choose_next_build(self): dlg = SkipDialog(self.worker.bisection.build_range, self.mainwindow) index = dlg.choose_next_build() if index is None: self.stop() return self.worker._next_build_index = index QTimer.singleShot(0, self.worker._bisect_next)
def build(self, nb_builds, return_exec_code=SkipDialog.Accepted): class FInfo(FutureBuildInfo): def _fetch(self): return self.data build_range = BuildRange(None, [FInfo(None, i) for i in range(nb_builds)]) dialog = SkipDialog(build_range) dialog.exec_ = lambda: return_exec_code self.qtbot.addWidget(dialog) dialog.show() self.qtbot.waitForWindowShown(dialog) return dialog
def choose_next_build(self): dlg = SkipDialog(self.bisector.bisection.build_range) self.bisector._next_build_index = dlg.choose_next_build() QTimer.singleShot(0, self.bisector._bisect_next)
def choose_next_build(self): dlg = SkipDialog(self.worker.bisection.build_range) self.worker._next_build_index = dlg.choose_next_build() QTimer.singleShot(0, self.worker._bisect_next)