示例#1
0
 def _getdefault(self, context):
     return call(self.value, context)
示例#2
0
def BSize(nobodyfunc, subcon, divide=1):
    return OConst(subcon,
                  lambda ctx: call(nobodyfunc, ctx).getsize() / call(divide))
示例#3
0
def BOffset(nobodyfunc, subcon, minus=0):
    return OConst(subcon,
                  lambda ctx: call(nobodyfunc, ctx).getoffset() - call(minus))
示例#4
0
 def _getdefault(self, context):
     return call(self.value, context)
示例#5
0
文件: block.py 项目: ieswxia/cs
def BSize(nobodyfunc, subcon, divide=1):
    return OConst(subcon, lambda ctx: call(nobodyfunc, ctx).getsize() / call(divide))
示例#6
0
文件: block.py 项目: ieswxia/cs
def BOffset(nobodyfunc, subcon, minus=0):
    return OConst(subcon, lambda ctx: call(nobodyfunc, ctx).getoffset() - call(minus))