예제 #1
0
    def execute(self):
        ctx.installData.autoPartDev = None

        if self.ui.accept_auto_1.isChecked() or self.ui.accept_auto_2.isChecked():
            if self.ui.accept_auto_1.isChecked() and len(self.arp) > 1:
                question = AutoPartQuestionWidget(self)
                question.show()
                ctx.mainScreen.moveInc = 0
            else:
                self.execute_()
        return True
예제 #2
0
 def execute(self):
     ctx.installData.autoPartDev = None
     _tmp = []
     if len(self.arp) > 1:
         for part in self.arp:
             if part["partition"].getDevice().getPath() == self.device.getPath():
                 self.autoPartPartition = part
                 _tmp.append(part)
     if self.ui.accept_auto_1.isChecked() or self.ui.accept_auto_2.isChecked():
         if self.ui.accept_auto_1.isChecked() and len(_tmp) > 1:
             question = AutoPartQuestionWidget(self, _tmp)
             question.show()
             ctx.mainScreen.moveInc = 0
         else:
             self.execute_()
     else:
         ctx.installData.autoPartMethod = methodManual
     ctx.selectedDisk = self.ui.device_list.currentRow()
     return True
예제 #3
0
 def execute(self):
     ctx.installData.autoPartDev = None
     _tmp = []
     if len(self.arp) > 1:
         for part in self.arp:
             if part["partition"].getDevice().getPath(
             ) == self.device.getPath():
                 self.autoPartPartition = part
                 _tmp.append(part)
     if self.ui.accept_auto_1.isChecked(
     ) or self.ui.accept_auto_2.isChecked():
         if self.ui.accept_auto_1.isChecked() and len(_tmp) > 1:
             question = AutoPartQuestionWidget(self, _tmp)
             question.show()
             ctx.mainScreen.moveInc = 0
         else:
             self.execute_()
     else:
         ctx.installData.autoPartMethod = methodManual
     ctx.selectedDisk = self.ui.device_list.currentRow()
     return True