This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from functools import wraps | |
def OneUndo(function): | |
@wraps(function) | |
def _decorated(*args, **kwargs): | |
try: | |
Application.BeginUndo() | |
f = function(*args, **kwargs) | |
finally: | |
Application.EndUndo() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from xml.dom.minidom import parseString | |
from sipyutils import si, siut | |
siget = lambda sFullName: si().Dictionary.GetObject(sFullName) | |
def GetWeight(p_oShape): | |
lData = list() | |
sConn = siut().DataRepository.GetConnectionStackInfo(p_oShape) | |
for i in parseString(sConn).getElementsByTagName("object"): | |
if "Mixer" in i.toxml(): |
NewerOlder