コード例 #1
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