Beispiel #1
0
def many_files(strings):
    func_name = strings.pop(0)
    print(func_name, ':')
    func = get_func(func_name)

    for filename in strings:
        print(os.path.basename(filename), ':', end=' ')
        lInput = geocomp.open_file(filename)

        run_alg(func, lInput)
def many_files (strings):
	func_name = strings.pop (0)
	print func_name,':'
	func = get_func (func_name)

	for filename in strings:
		print os.path.basename (filename),':',
		input = geocomp.open_file (filename)

		run_alg (func, input)
def many_files (strings):
	func_name = strings.pop (0)
	print func_name,':'
	func = get_func (func_name)

	for filename in strings:
		print os.path.basename (filename),':',
		input = geocomp.open_file (filename)

		run_alg (func, input)
def many_files (strings):
	func_name = strings.pop (0)
	print(func_name,':')
	func = get_func (func_name)

	for filename in strings:
		print(os.path.basename (filename),':', end=' ')
		lInput = geocomp.open_file (filename)

		run_alg (func, lInput)
 def open_file(self, entry):
     selection = os.path.join(self.datadir, entry.get_text())
     if os.path.isdir(selection):
         if self.idle_id == None:
             self.idle_id = idle_add(self.update_files, selection)
     else:
         self.cur_file = os.path.basename(selection)
         self.points = geocomp.open_file(selection)
         geocomp.config_canvas(self.points)
         for l in self.labels:
             l.set_text('------')
         self.extra_label.set_text('----------')
Beispiel #6
0
	def open_file (self, entry):
		selection = os.path.join (self.datadir, entry.get_text ())
		if os.path.isdir (selection):
			if self.idle_id == None:
				self.idle_id = idle_add (self.update_files,
								selection)
		else:
			self.cur_file = os.path.basename (selection)
			self.points = geocomp.open_file (selection)
			geocomp.config_canvas (self.points)
			for l in self.labels:
				l.set_text ('------')
			self.extra_label.set_text ('----------')
 def open_file(self, event=None):
     "abre um arquivo de entrada"
     #if self.in_algorithm: return
     selection = os.path.join(self.filelist.directory,
                              self.selected_file.get())
     if os.path.isdir(selection):
         self.update_files(selection)
         return
     else:
         self.points = geocomp.open_file(selection)
         self.current_filename = self.selected_file.get()
         geocomp.config_canvas(self.points)
         self.reset_labels()
         self.current_algorithm = None
	def open_file (self, event=None):
		"abre um arquivo de entrada"
		#if self.in_algorithm: return
		selection = os.path.join (self.filelist.directory, 
						self.selected_file.get ())
		if os.path.isdir (selection):
			self.update_files (selection)
			return
		else:
			self.input = geocomp.open_file (selection)
			self.current_filename = self.selected_file.get ()
			geocomp.config_canvas (self.input)
			self.reset_labels ()
			self.current_algorithm = None