Example #1
0
 def save(self):
     """Saves configuration data from the text widgets."""
     DFRaw.write(paths.get('init', 'init.txt'), self.left.get('1.0', 'end'))
     if os.path.isfile(paths.get('init', 'd_init.txt')):
         DFRaw.write(paths.get('init', 'd_init.txt'),
                     self.right.get('1.0', 'end'))
     self.gui.load_params()
 def save(self):
     """Saves configuration data from the text widgets."""
     DFRaw.write(
         paths.get('init', 'init.txt'), self.left.get('1.0', 'end'))
     if os.path.isfile(paths.get('init', 'd_init.txt')):
         DFRaw.write(
             paths.get('init', 'd_init.txt'), self.right.get('1.0', 'end'))
     self.gui.load_params()
 def load(self):
     """Loads configuration data into the text widgets."""
     self.gui.save_params()
     self.left.delete('1.0', END)
     self.left.insert('1.0', DFRaw.read(paths.get('init', 'init.txt')))
     self.right.delete('1.0', END)
     if os.path.isfile(paths.get('init', 'd_init.txt')):
         self.right.insert(
             '1.0', DFRaw.read(paths.get('init', 'd_init.txt')))
     else:
         Grid.columnconfigure(self.f, 2, weight=0)
         self.right.grid_forget()
         self.right_scroll.hidden = True
Example #4
0
 def load(self):
     """Loads configuration data into the text widgets."""
     self.gui.save_params()
     self.left.delete('1.0', END)
     self.left.insert('1.0', DFRaw.read(paths.get('init', 'init.txt')))
     self.right.delete('1.0', END)
     if os.path.isfile(paths.get('init', 'd_init.txt')):
         self.right.insert('1.0',
                           DFRaw.read(paths.get('init', 'd_init.txt')))
     else:
         Grid.columnconfigure(self.f, 2, weight=0)
         self.right.grid_forget()
         self.right_scroll.hidden = True