mirror of
https://github.com/gutosie/neoboot.git
synced 2025-11-01 20:05:48 +01:00
Update tools.py
This commit is contained in:
@@ -2028,7 +2028,7 @@ class InitializationFormattingDisk(Screen):
|
||||
self['lab1'] = Label(_('Select disk.'))
|
||||
self['key_red'] = Label(_('Formatting'))
|
||||
self['list'] = List([])
|
||||
self['actions'] = ActionMap(['WizardActions', 'ColorActions'], {'back': self.close,
|
||||
self['actions'] = ActionMap(['WizardActions', 'ColorActions'], {'back': self.myClose,
|
||||
'ok': self.deleteback,
|
||||
'red': self.deleteback})
|
||||
self.backupdir = '/tmp/disk'
|
||||
@@ -2072,6 +2072,9 @@ class InitializationFormattingDisk(Screen):
|
||||
else:
|
||||
self.close()
|
||||
|
||||
def myClose(selfe):
|
||||
os.system('reboot -f')
|
||||
|
||||
class BootManagers(Screen):
|
||||
__module__ = __name__
|
||||
skin = """<screen name="Boot Managers" title="Boot" position="center,center" size="892,198" flags="wfNoBorder">
|
||||
|
||||
Reference in New Issue
Block a user