当前位置: 首页>>代码示例>>Python>>正文


Python Proxy.send方法代码示例

本文整理汇总了Python中Teleplace.Proxy.Proxy.send方法的典型用法代码示例。如果您正苦于以下问题:Python Proxy.send方法的具体用法?Python Proxy.send怎么用?Python Proxy.send使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Teleplace.Proxy.Proxy的用法示例。


在下文中一共展示了Proxy.send方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: initialize3D

# 需要导入模块: from Teleplace.Proxy import Proxy [as 别名]
# 或者: from Teleplace.Proxy.Proxy import send [as 别名]
 def initialize3D(self):
     """Sets up the 3D world, including 3D dictionaries, a base group, and
     access to the panel as a 3D object"""
     if self.objectDictionary.has_key("___rootObject___") is False:
         QBaseGroup(self)
         QPanelGroup(self)
         QRootGroup(self)
         Proxy.send(self, "initialize3D")
开发者ID:JupiterSmalltalk,项目名称:openqwaq,代码行数:10,代码来源:Panel.py

示例2: __init__

# 需要导入模块: from Teleplace.Proxy import Proxy [as 别名]
# 或者: from Teleplace.Proxy.Proxy import send [as 别名]
 def __init__(self, panel, tClass, name = None):
     """Initializes the canvas for a given panel.
     wClass is the Teleplace class name.
     name is a reference id, usually None, which means this is a new
     object and a name will be generated.
     """
     self.panel = panel
     self.tClass = tClass
     self.changeAction = None
     if(name is None):
         self.name = self.panel.generateName()
         Proxy.send(self.panel, "makeWidget", tClass, self.name)
     else:
         self.name = name
     panel.objectDictionary[self.name]=self
开发者ID:JupiterSmalltalk,项目名称:openqwaq,代码行数:17,代码来源:Widget.py

示例3: saveFilePath

# 需要导入模块: from Teleplace.Proxy import Proxy [as 别名]
# 或者: from Teleplace.Proxy.Proxy import send [as 别名]
 def saveFilePath(self, userID, path, data, fileDesc, fileExt, dialogLabel, callback):
     """ Find a file and return the file name
     fileDesc - describe the file type
     fileExt - a string with all suffexes, separated by ;
     dialogLabel - a string with the label for the file dialog"""
     self['__saveFileData__'] = data
     return Proxy.send(self, "saveFilePath", userID, path, fileDesc, fileExt, dialogLabel, callback)
开发者ID:JupiterSmalltalk,项目名称:openqwaq,代码行数:9,代码来源:Panel.py

示例4: __getitem__

# 需要导入模块: from Teleplace.Proxy import Proxy [as 别名]
# 或者: from Teleplace.Proxy.Proxy import send [as 别名]
 def __getitem__(self, key):
     """Implementer of the return value for myValue = self.panel["myKey"]"""
     rval = Proxy.send(self, "getItem", key)
     if(type(rval)==tuple): #is this a tuple?
         if(len(rval)==3): #of length 3?
             if(rval[0]=="__sharedObject__" or rval[0]=="__3DObject__"): #a shared Object?
                 if(self.objectDictionary.has_key(rval[2])): #already loaded?
                     rval = self.objectDictionary[rval[2]]
                 else:
                     rval =  eval(rval[1])(self, rval[2])
     return rval
开发者ID:JupiterSmalltalk,项目名称:openqwaq,代码行数:13,代码来源:Panel.py

示例5: __init__

# 需要导入模块: from Teleplace.Proxy import Proxy [as 别名]
# 或者: from Teleplace.Proxy.Proxy import send [as 别名]
 def __init__(self, panel, tclass, name):
     """ initialization of QBasic and most of its sub-classes
     panel is the main shared panel object used for communication
     tclass is the internal class name of the object
     name is typically a dynamically generated shared name between Teleplace and Python
     """
     self.panel = panel
     self.tClass = tclass
     if(name is None):
          self.name = Proxy.send(self.panel, "makeNew", self.tClass)
     else:
         self.name = name
     panel.objectDictionary[self.name]=self
开发者ID:JupiterSmalltalk,项目名称:openqwaq,代码行数:15,代码来源:Q3D.py

示例6: moveTowards

# 需要导入模块: from Teleplace.Proxy import Proxy [as 别名]
# 或者: from Teleplace.Proxy.Proxy import send [as 别名]
	def moveTowards(self, target, amount, distance):
		"Move towards the given target by the specified amount"
		Proxy.send(self, "moveTowards:amount:distance:", target, amount, distance)
开发者ID:JupiterSmalltalk,项目名称:openqwaq,代码行数:5,代码来源:Croquet.py

示例7: stopStepping

# 需要导入模块: from Teleplace.Proxy import Proxy [as 别名]
# 或者: from Teleplace.Proxy.Proxy import send [as 别名]
	def stopStepping(self, function):
		"Stop stepping the given function"
		Proxy.send(self, "stopStepping:", function)
开发者ID:JupiterSmalltalk,项目名称:openqwaq,代码行数:5,代码来源:Croquet.py

示例8: playSound

# 需要导入模块: from Teleplace.Proxy import Proxy [as 别名]
# 或者: from Teleplace.Proxy.Proxy import send [as 别名]
	def playSound(self, soundName):
		"Play the sound with the given name"
		Proxy.send(self, "playSound:", soundName)
开发者ID:JupiterSmalltalk,项目名称:openqwaq,代码行数:5,代码来源:Croquet.py

示例9: translateBy

# 需要导入模块: from Teleplace.Proxy import Proxy [as 别名]
# 或者: from Teleplace.Proxy.Proxy import send [as 别名]
	def translateBy(self, deltaX, deltaY, deltaZ):
		"Translate this frame by delta X, Y, and Z"
		Proxy.send(self, "translateByX:y:z:", deltaX, deltaY, deltaZ)
开发者ID:JupiterSmalltalk,项目名称:openqwaq,代码行数:5,代码来源:Croquet.py

示例10: __getattr__

# 需要导入模块: from Teleplace.Proxy import Proxy [as 别名]
# 或者: from Teleplace.Proxy.Proxy import send [as 别名]
	def __getattr__(self, item):
		"Query Croquet about this value"
		value = Proxy.send(self, "pyGet:", item)
		if(value <> None): object.__setattr__(self, item, value)
		return value
开发者ID:JupiterSmalltalk,项目名称:openqwaq,代码行数:7,代码来源:Croquet.py

示例11: schedule

# 需要导入模块: from Teleplace.Proxy import Proxy [as 别名]
# 或者: from Teleplace.Proxy.Proxy import send [as 别名]
	def schedule(self):
		Proxy.send(target, "future:invoke:", msecs, self)
开发者ID:JupiterSmalltalk,项目名称:openqwaq,代码行数:4,代码来源:Croquet.py

示例12: getUserLogin

# 需要导入模块: from Teleplace.Proxy import Proxy [as 别名]
# 或者: from Teleplace.Proxy.Proxy import send [as 别名]
 def getUserLogin(self, uid):
     """Retrieves the login string for a user"""
     return Proxy.send(self, "getUserLogin", uid)
开发者ID:JupiterSmalltalk,项目名称:openqwaq,代码行数:5,代码来源:Panel.py

示例13: getUserName

# 需要导入模块: from Teleplace.Proxy import Proxy [as 别名]
# 或者: from Teleplace.Proxy.Proxy import send [as 别名]
 def getUserName(self, uid):
     """Retrieves the preferred screen name for a user"""
     return Proxy.send(self, "getUserName", uid)
开发者ID:JupiterSmalltalk,项目名称:openqwaq,代码行数:5,代码来源:Panel.py

示例14: getUserColor

# 需要导入模块: from Teleplace.Proxy import Proxy [as 别名]
# 或者: from Teleplace.Proxy.Proxy import send [as 别名]
 def getUserColor(self, uid):
     """Retrieves the color for a user"""
     return QColor.fromRGBA(Proxy.send(self, "getUserColor", uid))
开发者ID:JupiterSmalltalk,项目名称:openqwaq,代码行数:5,代码来源:Panel.py

示例15: getBaseUserName

# 需要导入模块: from Teleplace.Proxy import Proxy [as 别名]
# 或者: from Teleplace.Proxy.Proxy import send [as 别名]
 def getBaseUserName(self):
     """Retrive the _base_ user name - the guy that created and is running the doc"""
     return Proxy.send(self, "getBaseUserName")
开发者ID:JupiterSmalltalk,项目名称:openqwaq,代码行数:5,代码来源:Panel.py


注:本文中的Teleplace.Proxy.Proxy.send方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。