Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/sugar-zoom
blob: ee435170a7e943f2641de2ae7e2161fc7179f9a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/python
import sys

import dbus
import dbus.glib

bus = dbus.SessionBus()
proxy_obj = bus.get_object('com.redhat.Sugar.Shell', '/com/redhat/Sugar/Shell')
shell = dbus.Interface(proxy_obj, 'com.redhat.Sugar.Shell')

if sys.argv[1] == 'in':
	shell.zoom_in()
elif sys.argv[1] == 'out':
	shell.zoom_out()