def setClockFormat(clockFormat, **kwargs):
 if ((clockFormat != '12h') and (clockFormat != '24h')):
  return False
 _gsession = _GSettings(user=kwargs.get('user'), schema='org.gnome.desktop.interface', key='clock-format')
 return _gsession._set(clockFormat)

def setClockFormat ( clockFormat , ** kwargs ) : if ( ( clockFormat != '12h' ) and ( clockFormat != '24h' ) ) : return False _gsession = _GSettings ( user = kwargs . get ( 'user' ) , schema = 'org.gnome.desktop.interface' , key = 'clock-format' ) return _gsession . _set ( clockFormat )
set the clock format .