def bolumFormatla(self, hedef):
komut = "umount -l " + hedef
self.f.bilgi_label.setText(komut)
if os.path.exists(hedef):
os.system(komut)
self.f.surec_cubugu.setValue(50)
komut2 = "mkfs.ext4 -F " + hedef
try:
os.system(komut2)
self.f.surec_cubugu.setValue(100)
except OSError as e:
QMessageBox.warning(self, self.e.d[self.e.s_d]["Hata"], str(e))
qApp.closeAllWindows()
self.f.bilgi_label.setText(hedef + self.e.d[self.e.s_d][" disk bölümü formatland?."])
else:
QMessageBox.warning(self, self.e.d[self.e.s_d]["Hata"], self.e.d[self.e.s_d]["Disk bulunamad?. Program kapat?lacak."])
qApp.closeAllWindows()
评论列表
文章目录