本文整理匯總了Python中Delegator.Delegator類的典型用法代碼示例。如果您正苦於以下問題:Python Delegator類的具體用法?Python Delegator怎麽用?Python Delegator使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了Delegator類的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: setdelegate
def setdelegate(self, delegate):
if self.delegate is not None:
self.unbind("<<toggle-auto-coloring>>")
Delegator.setdelegate(self, delegate)
if delegate is not None:
self.config_colors()
self.bind("<<toggle-auto-coloring>>", self.toggle_colorize_event)
self.notify_range("1.0", "end")
示例2: setdelegate
def setdelegate(self, delegate):
if self.delegate is not None:
self.unbind("<<undo>>")
self.unbind("<<redo>>")
self.unbind("<<dump-undo-state>>")
Delegator.setdelegate(self, delegate)
if delegate is not None:
self.bind("<<undo>>", self.undo_event)
self.bind("<<redo>>", self.redo_event)
self.bind("<<dump-undo-state>>", self.dump_event)
示例3: setdelegate
def setdelegate(self, delegate):
if self.delegate is not None:
self.unbind("<<toggle-auto-coloring>>")
Delegator.setdelegate(self, delegate)
if delegate is not None:
self.config_colors()
self.bind("<<toggle-auto-coloring>>", self.toggle_colorize_event)
self.notify_range("1.0", "end")
else:
# No delegate - stop any colorizing
self.stop_colorizing = True
self.allow_colorizing = False
示例4: __init__
def __init__(self, name):
self.name = name
Delegator.__init__(self, None)
示例5: __init__
def __init__(self):
Delegator.__init__(self)
self.prog = prog
self.idprog = idprog
self.asprog = asprog
self.LoadTagDefs()
示例6: __init__
def __init__(self):
Delegator.__init__(self)
self.reset_undo()
示例7: __init__
def __init__(self):
Delegator.__init__(self)
self.reset_undo()
self.setdelegate(self.delegate)
示例8: __init__
def __init__(self):
Delegator.__init__(self)
self.prog = prog
self.idprog = idprog
示例9:
from WidgetRedirector import WidgetRedirector