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
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)
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()))
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
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()))