Commit 72685f6b authored by Guido van Rossum's avatar Guido van Rossum

print gl variables

parent c0367b29
#! /usr/local/bin/python
# Print the values of all values that can be inquired with getgdesc().
# See man getgdesc() for a description.
import gl
import GL
def main():
names = []
maxlen = 0
for name in dir(GL):
if name[:3] == 'GD_':
names.append(name)
maxlen = max(maxlen, len(name))
for name in names:
print name + (maxlen - len(name))*' ' + '=',
print gl.getgdesc(getattr(GL, name))
main()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment