mirror of
https://github.com/gutosie/neoboot.git
synced 2025-11-03 12:45:47 +01:00
Update devices.py
This commit is contained in:
@@ -601,8 +601,8 @@ class SetDiskLabel(Screen):
|
|||||||
self['key_green'] = Button(_('Set label'))
|
self['key_green'] = Button(_('Set label'))
|
||||||
self['key_yellow'] = Button(_('Add label'))
|
self['key_yellow'] = Button(_('Add label'))
|
||||||
self['key_blue'] = Button(_('Delete label'))
|
self['key_blue'] = Button(_('Delete label'))
|
||||||
self['actions'] = ActionMap(['OkCancelActions', 'ColorActions', 'DirectionActions'], {'cancel': self.cancel,
|
self['actions'] = ActionMap(['OkCancelActions', 'ColorActions', 'DirectionActions'], {'cancel': self.myclose,
|
||||||
'red': self.cancel,
|
'red': self.myclose,
|
||||||
'green': self.wlacz,
|
'green': self.wlacz,
|
||||||
'yellow': self.addlabel,
|
'yellow': self.addlabel,
|
||||||
'blue': self.dellabel,
|
'blue': self.dellabel,
|
||||||
@@ -712,6 +712,10 @@ class SetDiskLabel(Screen):
|
|||||||
|
|
||||||
return jest
|
return jest
|
||||||
|
|
||||||
|
def myclose(self):
|
||||||
|
if answer is True:
|
||||||
|
system('reboot -f')
|
||||||
|
|
||||||
|
|
||||||
class DeviceManagerSummary(Screen):
|
class DeviceManagerSummary(Screen):
|
||||||
def __init__(self, session, parent):
|
def __init__(self, session, parent):
|
||||||
|
|||||||
Reference in New Issue
Block a user