Use CamelCase for dbus methods.
This commit is contained in:
parent
33094dfa50
commit
1ba5cddaa3
@ -79,7 +79,7 @@ class Service(dbus.service.Object):
|
||||
self._console = Console()
|
||||
|
||||
@dbus.service.method(CONSOLE_IFACE)
|
||||
def toggle_visibility(self):
|
||||
def ToggleVisibility(self):
|
||||
window = self._console.window
|
||||
if not window.props.visible:
|
||||
window.present()
|
||||
|
@ -224,4 +224,4 @@ class KeyHandler(object):
|
||||
proxy = bus.get_object('org.laptop.sugar.Console',
|
||||
'/org/laptop/sugar/Console')
|
||||
console = dbus.Interface(proxy, 'org.laptop.sugar.Console')
|
||||
console.toggle_visibility()
|
||||
console.ToggleVisibility()
|
||||
|
Loading…
Reference in New Issue
Block a user