Esempio n. 1
0
def _getfontlist():
    from Carbon import Res
    fontnames = []
    for i in range(1, Res.CountResources('FOND') + 1):
        r = Res.GetIndResource('FOND', i)
        fontnames.append(r.GetResInfo()[2])
    return fontnames
Esempio n. 2
0
def listresources():
    ntypes = Res.CountTypes()
    for itype in range(1, 1+ntypes):
        type = Res.GetIndType(itype)
        print "Type:", repr(type)
        nresources = Res.CountResources(type)
        for i in range(1, 1 + nresources):
            Res.SetResLoad(0)
            res = Res.GetIndResource(type, i)
            Res.SetResLoad(1)
            info(res)
Esempio n. 3
0
	def findICONresources(self):
		num = Res.CountResources('ICON')
		rv = []
		for i in range(1, num+1):
			Res.SetResLoad(0)
			try:
				r = Res.GetIndResource('ICON', i)
			finally:
				Res.SetResLoad(1)
			id, type, name = r.GetResInfo()
			rv.append((id, name))
		return rv
Esempio n. 4
0
"""browsepict - Display all "cicn" resources found"""
Esempio n. 5
0
"""browsepict - Display all "PICT" resources found"""
Esempio n. 6
0
# List all resources