Exemplo n.º 1
0
def list1resources():
    ntypes = Res.Count1Types()
    for itype in range(1, 1+ntypes):
        type = Res.Get1IndType(itype)
        print "Type:", repr(type)
        nresources = Res.Count1Resources(type)
        for i in range(1, 1 + nresources):
            Res.SetResLoad(0)
            res = Res.Get1IndResource(type, i)
            Res.SetResLoad(1)
            info(res)
Exemplo n.º 2
0
def listresources():
    ntypes = Res.CountTypes()
    for itype in range(1, 1 + ntypes):
        type = Res.GetIndType(itype)
        print "Type:", ` 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)
Exemplo 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
Exemplo n.º 4
0
"""browsepict - Display all "cicn" resources found"""
Exemplo n.º 5
0
"""browsepict - Display all "PICT" resources found"""
Exemplo n.º 6
0
# List all resources
Exemplo n.º 7
0
"""Creation of PYC resources"""