コード例 #1
0
ファイル: ScrPartitionAuto.py プロジェクト: Tayyib/uludag
    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
ファイル: ScrPartitionAuto.py プロジェクト: Tayyib/uludag
 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
ファイル: ScrPartitionAuto.py プロジェクト: pars-linux/uludag
 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