class Widget(QtGui.QWidget, ScreenWidget): title = _('Check your media') desc = _( 'To ignore media corruptions you can check your media integrity...') icon = "iconCD" help = _(''' <font size="+2">Check CD Integrity!</font> <font size="+1"><p> You can check if the packages included in the installation CD are saved correctly into the CD. Performing this test is a highly important step in making sure for a problem-free installation. If the test fails, try re-burning the ISO image in a lower (e.g. 12x or less) speed.</p></font> ''') def __init__(self, *args): QtGui.QWidget.__init__(self, None) self.ui = Ui_CheckCDWidget() self.ui.setupUi(self) self.connect(self.ui.checkButton, SIGNAL("clicked()"), self.slotCheckCD) if ctx.consts.lang == "tr": self.ui.progressBar.setFormat("%%p") def slotCheckCD(self): if ctx.yali.checkCDStop == True: ctx.yali.checkCDStop = False self.ui.checkLabel.setText( _('<font color="#FFF">Please wait while checking CD.</font>')) self.ui.checkButton.setText(_("Stop Checking")) # Check the CD ctx.yali.checkCD(self.ui) else: ctx.yali.checkCDStop = True self.ui.checkButton.setText(_("Check CD Integrity"))
class Widget(QtGui.QWidget, ScreenWidget): title = _('Check your installation medium') desc = _('To ignore medium corruptions you can check your packages integrity...') icon = "iconCD" help = _(''' <font size="+2">Check Packages Integrity!</font> <font size="+1"><p> You can check if the packages included in the installation Medium are saved correctly. Performing this test is a highly important step in making sure for a problem-free installation. If the test fails, try re-burning the ISO image in a lower (e.g. 12x or less) speed.</p></font> ''') def __init__(self, *args): QtGui.QWidget.__init__(self,None) self.ui = Ui_CheckCDWidget() self.ui.setupUi(self) self.connect(self.ui.checkButton, SIGNAL("clicked()"),self.slotCheckCD) if ctx.consts.lang == "tr": self.ui.progressBar.setFormat("%%p") def slotCheckCD(self): if ctx.yali.checkCDStop == True: ctx.yali.checkCDStop = False self.ui.checkLabel.setText(_('<font color="#FFF">Please wait while checking Packages.</font>')) self.ui.checkButton.setText(_("Stop Checking")) # Check the CD ctx.yali.checkCD(self.ui) else: ctx.yali.checkCDStop = True self.ui.checkButton.setText(_("Check Packages Integrity"))
class Widget(QtGui.QWidget, ScreenWidget): title = _('Check your media') desc = _('To ignore media corruptions you can check your media integrity..') icon = "iconCD" help = _(''' <font size="+2">Check CD Integrity!</font> <font size="+1"> <p>In this screen, you can check the integrity of the packages in installation CD. </p> ''') def __init__(self, *args): QtGui.QWidget.__init__(self,None) self.ui = Ui_CheckCDWidget() self.ui.setupUi(self) self.connect(self.ui.checkButton, SIGNAL("clicked()"), self.slotCheckCD) def slotCheckCD(self): self.ui.checkButton.setEnabled(False) self.ui.checkLabel.setText(_('<font color="#FF6D19">Please wait while checking CD.</font>')) # Check the CD ctx.yali.checkCD(self.ui)
def __init__(self, *args): QtGui.QWidget.__init__(self, None) self.ui = Ui_CheckCDWidget() self.ui.setupUi(self) self.connect(self.ui.checkButton, SIGNAL("clicked()"), self.slotCheckCD) if ctx.consts.lang == "tr": self.ui.progressBar.setFormat("%%p")
def __init__(self, *args): QtGui.QWidget.__init__(self,None) self.ui = Ui_CheckCDWidget() self.ui.setupUi(self) self.connect(self.ui.checkButton, SIGNAL("clicked()"), self.slotCheckCD)
def __init__(self, *args): QtGui.QWidget.__init__(self,None) self.ui = Ui_CheckCDWidget() self.ui.setupUi(self) self.connect(self.ui.checkButton, SIGNAL("clicked()"),self.slotCheckCD) if ctx.consts.lang == "tr": self.ui.progressBar.setFormat("%%p")