blob: e072cf3e66118a24d7c9ec06c76418b10ebca9c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/usr/bin/env python
import xklavier
import gtk
def print_option(c_reg, item):
print ('\t %s (%s)' % (item.get_description(), item.get_name()))
def print_option_group(c_reg, item):
print ('\n%s (%s)' % (item.get_description(), item.get_name()))
c_reg.foreach_option(item.get_name(), print_option)
display = gtk.gdk.display_get_default()
engine = xklavier.Engine(display)
configreg = xklavier.ConfigRegistry(engine)
configreg.load(False)
configreg.foreach_option_group(print_option_group)
|