Use CamelCase for dbus methods.

This commit is contained in:
Marco Pesenti Gritti 2007-08-20 15:15:44 +02:00
parent 33094dfa50
commit 1ba5cddaa3
2 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ class Service(dbus.service.Object):
self._console = Console() self._console = Console()
@dbus.service.method(CONSOLE_IFACE) @dbus.service.method(CONSOLE_IFACE)
def toggle_visibility(self): def ToggleVisibility(self):
window = self._console.window window = self._console.window
if not window.props.visible: if not window.props.visible:
window.present() window.present()

View File

@ -224,4 +224,4 @@ class KeyHandler(object):
proxy = bus.get_object('org.laptop.sugar.Console', proxy = bus.get_object('org.laptop.sugar.Console',
'/org/laptop/sugar/Console') '/org/laptop/sugar/Console')
console = dbus.Interface(proxy, 'org.laptop.sugar.Console') console = dbus.Interface(proxy, 'org.laptop.sugar.Console')
console.toggle_visibility() console.ToggleVisibility()