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:
@@ -78,12 +78,12 @@ class ManagerDevice(Screen):
|
|||||||
self.list = []
|
self.list = []
|
||||||
self['list'] = List(self.list)
|
self['list'] = List(self.list)
|
||||||
self['list'].onSelectionChanged.append(self.selectionChanged)
|
self['list'].onSelectionChanged.append(self.selectionChanged)
|
||||||
self['actions'] = ActionMap(['WizardActions', 'ColorActions', 'MenuActions'], {'back': self.close,
|
self['actions'] = ActionMap(['WizardActions', 'ColorActions', 'MenuActions'], {'back': self.myclose,
|
||||||
'red': self.Format_ext3,
|
'red': self.Format_ext3,
|
||||||
'green': self.SetupMounts,
|
'green': self.SetupMounts,
|
||||||
'yellow': self.Format_ext4,
|
'yellow': self.Format_ext4,
|
||||||
'blue': self.InitializationNeoB,
|
'blue': self.InitializationNeoB,
|
||||||
'back': self.close})
|
'back': self.myclose})
|
||||||
self.activityTimer = eTimer()
|
self.activityTimer = eTimer()
|
||||||
self.activityTimer.timeout.get().append(self.updateList2)
|
self.activityTimer.timeout.get().append(self.updateList2)
|
||||||
self.updateList()
|
self.updateList()
|
||||||
@@ -311,6 +311,9 @@ class ManagerDevice(Screen):
|
|||||||
self.updateList()
|
self.updateList()
|
||||||
self.selectionChanged()
|
self.selectionChanged()
|
||||||
|
|
||||||
|
def myclose(self):
|
||||||
|
system('reboot -f')
|
||||||
|
|
||||||
|
|
||||||
class DevicesConf(Screen, ConfigListScreen):
|
class DevicesConf(Screen, ConfigListScreen):
|
||||||
screenwidth = getDesktop(0).size().width()
|
screenwidth = getDesktop(0).size().width()
|
||||||
|
|||||||
Reference in New Issue
Block a user