本文整理匯總了Python中VariableText.VariableText.__init__方法的典型用法代碼示例。如果您正苦於以下問題:Python VariableText.__init__方法的具體用法?Python VariableText.__init__怎麽用?Python VariableText.__init__使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類VariableText.VariableText
的用法示例。
在下文中一共展示了VariableText.__init__方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: __init__
# 需要導入模塊: from VariableText import VariableText [as 別名]
# 或者: from VariableText.VariableText import __init__ [as 別名]
def __init__(self, text = '', onClick = None):
if not onClick:
onClick = []
GUIComponent.__init__(self)
VariableText.__init__(self)
self.setText(text)
self.onClick = onClick
示例2: __init__
# 需要導入模塊: from VariableText import VariableText [as 別名]
# 或者: from VariableText.VariableText import __init__ [as 別名]
def __init__(self, path, type, update = True):
GUIComponent.__init__(self)
VariableText.__init__(self)
self.type = type
self.path = path
if update:
self.update()
示例3: __init__
# 需要導入模塊: from VariableText import VariableText [as 別名]
# 或者: from VariableText.VariableText import __init__ [as 別名]
def __init__(self):
VariableText.__init__(self)
GUIComponent.__init__(self)
self.doClock()
self.clockTimer = eTimer()
self.clockTimer.callback.append(self.doClock)
示例4: __init__
# 需要導入模塊: from VariableText import VariableText [as 別名]
# 或者: from VariableText.VariableText import __init__ [as 別名]
def __init__(self, text = '', maxSize = False, visible_width = False, type = TEXT, currPos = 0, allMarked = True):
NumericalTextInput.__init__(self, self.right)
GUIComponent.__init__(self)
VariableText.__init__(self)
self.type = type
self.allmarked = allMarked and text != '' and type != self.PIN
self.maxSize = maxSize
self.currPos = currPos
self.visible_width = visible_width
self.offset = 0
self.overwrite = maxSize
self.setText(text)
示例5: __init__
# 需要導入模塊: from VariableText import VariableText [as 別名]
# 或者: from VariableText.VariableText import __init__ [as 別名]
def __init__(self, text="", maxSize = False, visible_width = False, type = TEXT):
NumericalTextInput.__init__(self, self.right)
GUIComponent.__init__(self)
VariableText.__init__(self)
self.type = type
self.allmarked = (text != "") and (type != self.PIN)
self.maxSize = maxSize
self.currPos = 0
self.visible_width = visible_width
self.offset = 0
self.overwrite = maxSize
self.setText(text)
示例6: __init__
# 需要導入模塊: from VariableText import VariableText [as 別名]
# 或者: from VariableText.VariableText import __init__ [as 別名]
def __init__(self, text=""):
GUIComponent.__init__(self)
VariableText.__init__(self)
self.setText(text)
示例7: __init__
# 需要導入模塊: from VariableText import VariableText [as 別名]
# 或者: from VariableText.VariableText import __init__ [as 別名]
def __init__(self, text="", onClick = [ ]):
GUIComponent.__init__(self)
VariableText.__init__(self)
self.setText(text)
self.onClick = onClick
示例8: __init__
# 需要導入模塊: from VariableText import VariableText [as 別名]
# 或者: from VariableText.VariableText import __init__ [as 別名]
def __init__(self, navcore, eventmap):
GUIComponent.__init__(self)
VariableText.__init__(self)
PerServiceBase.__init__(self, navcore, eventmap)