home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / onboard / scripts / switchButtons.py < prev    next >
Encoding:
Python Source  |  2008-03-03  |  239 b   |  10 lines

  1. import gconf
  2.  
  3.  
  4.  
  5. def run(sok):
  6.     gconfClient = gconf.client_get_default()
  7.     print "switch"
  8.     b = gconfClient.get_bool("/desktop/gnome/peripherals/mouse/left_handed")
  9.     gconfClient.set_bool("/desktop/gnome/peripherals/mouse/left_handed", not b)
  10.