Exemplo n.º 1
0
 def execute(self, instance):
     try:
         filename = open_file_selector()
         reader = ByteReader(open(filename, 'rb'))
         instance.objectPlayer.array.read(reader)
         file.close()
     except IOError:
         pass
Exemplo n.º 2
0
 def execute(self, instance):
     try:
         filename = open_file_selector()
         reader = ByteReader(open(filename, 'rb'))
         instance.objectPlayer.array.read(reader)
         file.close()
     except IOError:
         pass
Exemplo n.º 3
0
def main():
    filenames = open_file_selector('Select .txt file', multi=True,
                                   filters=[('Text files', ('*.txt',)),
                                            ('All Files', ('*.*',)),])
    if not filenames:
        return
    for filename in filenames:
        tiler = Tiler(filename)
        tiler.run()
Exemplo n.º 4
0
def main():
    filenames = open_file_selector('Select .txt file',
                                   multi=True,
                                   filters=[
                                       ('Text files', ('*.txt', )),
                                       ('All Files', ('*.*', )),
                                   ])
    if not filenames:
        return
    for filename in filenames:
        tiler = Tiler(filename)
        tiler.run()