[scribus] Listing all Scripter documentation
José Antonio Rocha
joseantoniorocha at gmail.com
Sun Jan 29 21:18:33 UTC 2012
Quick and dirty way to get all Scripter documentation. Paste the code in
Scripter console and press F9. Then, save the result.
d = dir()
for j in d:
try:
exec 'res = '+j+'.__doc__'
if res[0:5] == 'float':
print '\nCONSTANT:\n',j,'\nVALUE: float'
exec 'print '+j+'\n'
elif res[0:5] == 'int(x':
print '\nCONSTANT:\n',j,'\nVALUE: integer'
exec 'print '+j+'\n'
elif res[0:5] == 'tuple':
print '\nTUPLE:\n',j,'\nVALUE:'
exec 'print repr('+j+')\n'
else:
print '\nCOMMAND:\n'+j+'\n\nSINTAX:'
print res
except: pass
Some results are Python things, not Scripter.
--
[image: Meira]
------------------------------
nome: "José Antonio Meira da Rocha"
googletalk: email: MSN: joseantoniorocha at gmail.com
veículo: [ http://meiradarocha.jor.br ]
------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20120129/db9cbd11/attachment.html>
More information about the scribus
mailing list