File: gen_win32con.py

package info (click to toggle)
xpra 3.1.5%2Bdfsg1-0.2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 18,692 kB
  • sloc: python: 117,045; javascript: 94,780; ansic: 2,843; sh: 939; cpp: 268; makefile: 212; xml: 89
file content (18 lines) | stat: -rw-r--r-- 446 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import types
import win32con		#@UnresolvedImport

print("# win32 constants definitions generated using gen_win32con.py")
print()
for x in dir(win32con):
	v = getattr(win32con, x)
	if x.startswith("_"):
		continue
	elif type(v)==int:
		print("%s=%s" % (x, v))
	elif type(v)==str:
		print("%s='%s'" % (x, v))
	elif type(v)==types.FunctionType:
		pass
		#print("skipping function %s" % x)
	else:
		print("unknown type %s=%s (%s)" % (x, v, type(v)))