Added 'description' class attribute to every command class (to help the
[python/dscho.git] / Mac / Lib / test / icgluetest.py
blob323f9e7b7de9e470110755638fc016ab269c74d9
1 """Test icglue module by printing all preferences"""
3 import icglue
4 import Res
6 ici = icglue.ICStart('Pyth')
7 ici.ICFindConfigFile()
8 h = Res.Resource("")
10 ici.ICBegin(1)
11 numprefs = ici.ICCountPref()
12 print "Number of preferences:", numprefs
14 for i in range(1, numprefs+1):
15 key = ici.ICGetIndPref(i)
16 print "Key: ", key
18 h.data = ""
19 attrs = ici.ICFindPrefHandle(key, h)
20 print "Attr: ", attrs
21 print "Data: ", `h.data[:64]`
23 ici.ICEnd()
24 del ici
26 import sys
27 sys.exit(1)