本文整理汇总了Python中form.Form.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Form.__init__方法的具体用法?Python Form.__init__怎么用?Python Form.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类form.Form
的用法示例。
在下文中一共展示了Form.__init__方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from form import Form [as 别名]
# 或者: from form.Form import __init__ [as 别名]
def __init__(self):
root = Tk()
root.title(self.title)
labels = ['Server Name', 'Remote Dir', 'File Name',
'Local Dir', 'User Name?', 'Password?']
Form.__init__(self, labels, root)
self.mutex = _thread.allocate_lock()
self.threads = 0
示例2: __init__
# 需要导入模块: from form import Form [as 别名]
# 或者: from form.Form import __init__ [as 别名]
def __init__(self):
root = Tk()
root.title(self.title)
root.geometry("600x600")
labels = ['Server Name', 'Port Number']
Form.__init__(self, labels)
self.portnum = 0
self.nextport = 0
self.servername = ""
self.filename = ""
self.socket = None
self.transfer_done = 0
self.data_transfer_done = 0
self.filelist = []
示例3: __init__
# 需要导入模块: from form import Form [as 别名]
# 或者: from form.Form import __init__ [as 别名]
def __init__(self):
root = Tk()
root.title(self.title)
root.geometry("600x600")
Form.__init__(self)
self.portnum = 0
self.nextport = 0
self.servername = ""
self.filename = ""
self.socket = None
self.transfer_done = 0
self.data_transfer_done = 0
示例4: __init__
# 需要导入模块: from form import Form [as 别名]
# 或者: from form.Form import __init__ [as 别名]
def __init__(self,
name=None,
method=None,
action=None,
enctype=None,
fields=None,
validators=None,
processors=None,
layout=None,
**view_attrs):
Form.__init__(self,
name,
method,
action,
enctype,
fields,
validators,
processors)
Viewable.__init__(self, **view_attrs)
self.layout=layout or StackLayout()
示例5: __init__
# 需要导入模块: from form import Form [as 别名]
# 或者: from form.Form import __init__ [as 别名]
def __init__(self,
component,
cache=NO,
name=None,
method=None,
action=None,
enctype=None,
fields=None,
validators=None,
processors=None,
**view_attrs):
ComponentViewableMixin.__init__(self,
component,
cache)
Viewable.__init__(self,
**view_attrs)
Form.__init__(self,
name,
method,
action,
enctype,
fields,
validators,
processors)
示例6: __init__
# 需要导入模块: from form import Form [as 别名]
# 或者: from form.Form import __init__ [as 别名]
def __init__(self, parent):
Form.__init__(self, parent)
self.parent = parent
self.create_form()
示例7: __init__
# 需要导入模块: from form import Form [as 别名]
# 或者: from form.Form import __init__ [as 别名]
def __init__(self):
Form.__init__(self, 'Record detail -- CWI Library')
示例8: __init__
# 需要导入模块: from form import Form [as 别名]
# 或者: from form.Form import __init__ [as 别名]
def __init__(self, oneshot=0):
root = Tk()
root.title('getfilegui')
labels = ['Server Name', 'Port Number', 'File Name', 'Local Dir?']
Form.__init__(self, labels, root)
self.oneshot = oneshot
示例9: __init__
# 需要导入模块: from form import Form [as 别名]
# 或者: from form.Form import __init__ [as 别名]
def __init__(self, oneshot=False):
root = Tk()
root.title("getfilegui")
labels = ["Server Name", "Port Number", "File Name", "Local Dir?"]
Form.__init__(self, labels, root)
self.oneshot = oneshot