mirror of
https://github.com/jtgans/g13gui.git
synced 2025-06-20 00:14:09 -04:00
applet: Reorganize methods a bit
This commit is contained in:
parent
82a6094b0a
commit
bdde3dd52a
@ -103,6 +103,9 @@ class Applet(dbus.service.Object):
|
|||||||
def onHidden(self):
|
def onHidden(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def onUpdateScreen(self):
|
||||||
|
pass
|
||||||
|
|
||||||
def maybePresentScreen(self):
|
def maybePresentScreen(self):
|
||||||
if self.screen.visible and self._manager:
|
if self.screen.visible and self._manager:
|
||||||
self.screen.nextFrame()
|
self.screen.nextFrame()
|
||||||
@ -130,9 +133,6 @@ class Applet(dbus.service.Object):
|
|||||||
if button:
|
if button:
|
||||||
button.pressed = state
|
button.pressed = state
|
||||||
|
|
||||||
def onUpdateScreen(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
@dbus.service.method(BUS_INTERFACE,
|
@dbus.service.method(BUS_INTERFACE,
|
||||||
in_signature='di', out_signature='ay',
|
in_signature='di', out_signature='ay',
|
||||||
byte_arrays=True)
|
byte_arrays=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user