Пример #1
0
def MakeMethodCommand(method, *args):
    obj = method.im_self
    name = method.__name__
    pax.register_object(obj) # assuming that obj unregisters itself
    return ('call_py_method', id(obj), name) + args
Пример #2
0
    def __init__(self, master=None, **kw):
	pax.register_object(self)
	kw['pyobject'] = id(self)
	kw['class'] = self.__class__.__name__
	Widget.__init__(self, master, 'paxwidget', kw = kw)
Пример #3
0
 def __init__(self, master=None, **kw):
     key = pax.register_object(self)
     kw['pyobject'] = key
     kw['class'] = self.__class__.__name__
     Widget.__init__(self, master, 'paxwidget', kw = kw)
     self.InitTkWinObject(pax.name_to_window(self._w, self.tk.interpaddr()))
Пример #4
0
def MakeMethodCommand(method, *args):
    obj = method.im_self
    name = method.__name__
    key = pax.register_object(obj) # assuming that obj unregisters itself
    return ('call_py_method', key, name) + args
Пример #5
0
	def __init__(self, master=None, **kw):
		key = pax.register_object(self)
		kw['pyobject'] = key
		kw['class'] = self.__class__.__name__
		Widget.__init__(self, master, 'paxwidget', kw=kw)
		self.InitTkWinObject(pax.name_to_window(self._w, self.tk.interpaddr()))