def on_init(self): Page.on_init(self) self.set_background_color(255, 255, 255) self.insert_vertical_image("%s-vertical.bmp" % self.info.distro.name) #navigation self.insert_navigation(_("Finish"), default=1) self.navigation.button1.on_click = self.on_finish #main container self.insert_main() self.main.set_background_color(255, 255, 255) self.main.title = ui.Label( self.main, 40, 20, self.main.width - 80, 60, _("Completing the %s Setup Wizard") % self.info.distro.name) self.main.title.set_font(size=20, bold=True, family="Arial") self.main.label = ui.Label( self.main, 40, 90, self.main.width - 80, 40, _("You need to reboot to complete the installation")) self.main.reboot_now = ui.RadioButton(self.main, 60, 150, self.main.width - 100, 20, _("Reboot now")) self.main.reboot_later = ui.RadioButton( self.main, 60, 180, self.main.width - 100, 20, _("I want to manually reboot later")) self.main.reboot_later.set_check(True)
def on_init(self): Page.on_init(self) self.set_background_color(255, 255, 255) self.insert_vertical_image("%s-vertical.bmp" % self.info.cd_distro.name) #navigation self.insert_navigation(_("< Back"), _("Finish"), _("Cancel"), default=2) self.navigation.button1.on_click = self.on_back self.navigation.button2.on_click = self.on_finish self.navigation.button3.on_click = self.on_cancel #main container self.insert_main() self.main.set_background_color(255, 255, 255) self.main.title = ui.Label(self.main, 40, 20, self.main.width - 80, 60, _("Reboot required")) self.main.title.set_font(size=20, bold=True, family="Arial") txt = _( "To start the Live CD you need to reboot your machine leaving the CD in the tray. If your machine cannot boot from the CD, the last option should work in most cases." ) self.main.label = ui.Label(self.main, 40, 90, self.main.width - 80, 40, txt) self.main.reboot_now = ui.RadioButton(self.main, 60, 150, self.main.width - 100, 20, _("Reboot now")) self.main.reboot_later = ui.RadioButton( self.main, 60, 180, self.main.width - 100, 20, _("I want to manually reboot Later")) self.main.cd_boot = ui.RadioButton(self.main, 60, 210, self.main.width - 100, 20, _("Help me to boot from CD")) self.main.reboot_later.set_check(True)
def on_init(self): Page.on_init(self) self.info.accessibility = "" #header self.insert_header( _("Accessibility profile"), _("Please select the appropriate accessibility profile"), "%s-header.bmp" % self.info.distro) #navigation self.insert_navigation(_("Next >>"), _("Cancel"), default=1) self.navigation.button2.on_click = self.on_cancel self.navigation.button1.on_click = self.on_next #Main control container self.insert_main() #visibility aids h = 30 w = (self.width - h * 7) / 2 self.main.visibility_group = ui.GroupBox(self.main, h, h * 1, w + h * 2, h * 6 - 10, text=_("Visibility Aids")) self.main.visibility1_button = ui.RadioButton(self.main, h * 2, h * 2, w, h, text=_("Visibility1")) self.main.visibility2_button = ui.RadioButton(self.main, h * 2, h * 3, w, h, text=_("Visibility2")) self.main.visibility3_button = ui.RadioButton(self.main, h * 2, h * 4, w, h, text=_("Visibility3")) self.main.braille_button = ui.RadioButton(self.main, h * 2, h * 5, w, h, text=_("Braille")) #mobility aids self.main.mobility_group = ui.GroupBox(self.main, w + h * 4, h * 1, w + h * 2, h * 4 - 10, text=_("Mobility Aids")) self.main.mobility1_button = ui.RadioButton(self.main, w + h * 5, h * 2, w, h, text=_("Mobility1")) self.main.mobility2_button = ui.RadioButton(self.main, w + h * 5, h * 3, w, h, text=_("Mobility2")) #no aids self.main.no_aids_button = ui.RadioButton(self.main, w + h * 5, h * 5 + 6, w, 20, text=_("None")) self.main.no_aids_button.set_check(True)