home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / share / onboard / scripts / switchButtons.py < prev    next >
Encoding:
Python Source  |  2006-10-09  |  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.