Heyho!
Today I wanted to start python scripting for Breldur, but all links to download Plasmashop seem to be dead.
Anyone knows where to get a copy or may send me the .zip-file please?
Thank you, Jonnee
D'Lanor wrote:Try UruPython. PlasmaShop's default Python template used to be bugged anyway. I am not sure if it that has been fixed by now.
D'Lanor wrote:New tool? UruPython has been around longer than PlasmaShop. And It still beats any other tool in simplicity and ease of use (at least the GUI version which I recommended).
Tsar Hoikas wrote:I'm pretty sure Zrax meant the "different" new rather than "newer" new.
def n_build_list(self, node):
"""
prettyprint a list or tuple
"""
lastnode = node.pop().type
if lastnode.startswith('BUILD_LIST'):
self.write('['); endchar = ']'
elif lastnode.startswith('BUILD_TUPLE'):
self.write('('); endchar = ')'
else:
raise 'Internal Error: n_build_list expects list or tuple'
self.indentMore(INDENT_PER_LEVEL)
line_seperator = ',\n' + self.indent
sep = INDENT_PER_LEVEL[:-1]
for elem in node:
assert elem == 'expr'
value = self.traverse(elem)
self.write(sep, value)
sep = line_seperator
self.write(endchar)
self.indentLess(INDENT_PER_LEVEL)
self.prune()
def n_build_list(self, node):
"""
prettyprint a list or tuple
"""
isTuple = 0
lastnode = node.pop().type
if lastnode.startswith('BUILD_LIST'):
self.write('['); endchar = ']'
elif lastnode.startswith('BUILD_TUPLE'):
self.write('('); endchar = ')'
isTuple = 1
else:
raise 'Internal Error: n_build_list expects list or tuple'
self.indentMore(INDENT_PER_LEVEL)
line_seperator = ',\n' + self.indent
sep = INDENT_PER_LEVEL[:-1]
count = 0
for elem in node:
assert elem == 'expr'
value = self.traverse(elem)
self.write(sep, value)
sep = line_seperator
count = count + 1
if ((isTuple == 1) & (count == 1)):
self.write(',')
self.write(endchar)
self.indentLess(INDENT_PER_LEVEL)
self.prune()
lastnode = node.pop().type
if lastnode.startswith('BUILD_LIST'):
self.write('['); endchar = ']'
elif lastnode.startswith('BUILD_TUPLE'):
self.write('(')
if len(node) == 1:
endchar = ',)'
else:
endchar = ')'
else:
raise 'Internal Error: n_build_list expects list or tuple'
Users browsing this forum: No registered users and 0 guests