def __init__(self):
        self.lock = Lock()
        text = ''
        self.root = Tk()
        root = self.root

        #root.title('Youtube Downloader by Shkirmantsev')
        root.title(self.title)
        labels = [
            'video_url for download:', 'quality_mode or press enter',
            'Saving_directory', 'Saving_file_name', 'video_file_to_convert'
        ]

        Form.__init__(self, labels, parent=root)

        self.mutex = _thread.allocate_lock()

        threadsv = Value('i', 0)
        self.threads = threadsv.value

        #print("self content on start: ",self.content)
        self.content['quality_mode or press enter'].delete(0, END)
        self.content['quality_mode or press enter'].insert(0, 1)
        #print("content is: ", self.content)

        # import functions
        for items in main_array:
            exec("from {0} import {1} as {1}".format(items[1], items[0]))
            #assert "." not in items[0], "Houston we've got a problem with hakers"
            if ("import" in items[0]) or ("." in items[0]):
                raise Exception("Houston we've got a problem with hakers")
            func = eval("{0}".format(items[0]))
            setattr(FtpForm, "{0}".format(items[0]), func)

        root.mainloop()
Example #2
0
 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
Example #3
0
 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
Example #4
0
 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 = []
Example #5
0
    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
Example #6
0
 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()
Example #7
0
 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)
Example #8
0
 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
	def __init__(self, parent):
		Form.__init__(self, parent)
		self.parent = parent
		self.create_form()
Example #10
0
    def __init__(self):
	Form.__init__(self, 'Record detail -- CWI Library')
Example #11
0
    def __init__(self):
	Form.__init__(self, 'Short list -- CWI Library')
Example #12
0
 def __init__(self):
     Form.__init__(self, 'Short list -- CWI Library')
Example #13
0
 def __init__(self, parent):
     Form.__init__(self, parent)
     self.parent = parent
     self.create_form()
Example #14
0
 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
Example #15
0
 def __init__(self, master):
     Form.__init__(self, master)
     self._initialize(master)
     self._initialize_view(master)
Example #16
0
 def __init__(self):
     Form.__init__(self, 'Query form -- CWI Library')
 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
Example #18
0
 def __init__(self):
     Form.__init__(self, 'Record detail -- CWI Library')
Example #19
0
    def __init__(self):
	Form.__init__(self, 'Query form -- CWI Library')