def on_start(self):
     try:
         f = open(self.memo_file)
         s = f.read()
         try:
             # single scene number
             _setup.config(initial_scene=int(s))
         except ValueError:
             try:
                 # scene and subscene number
                 _setup.config(initial_scene=tuple(map(int, s.split())))
             except ValueError:
                 pass
     except IOError:
         # couldn't open memo file, might not be an error
         pass
Example #2
0
 def on_start(self):
     try:
         f = open(self.memo_file)
         s = f.read()
         try:
             # single scene number
             _setup.config(initial_scene=int(s))
         except ValueError:
             try:
                 # scene and subscene number
                 _setup.config(initial_scene=tuple(map(int, s.split())))
             except ValueError:
                 pass
     except IOError:
         # couldn't open memo file, might not be an error
         pass
Example #3
0
    def setUp(self):
        setup.reset()
        setup.config(data_offset=0)

        self.mididings_dict = mididings.__dict__.copy()
        self.mididings_dict.update(mididings.event.__dict__)
Example #4
0
    def setUp(self):
        setup.reset()
        setup.config(data_offset = 0)

        self.mididings_dict = mididings.__dict__.copy()
        self.mididings_dict.update(mididings.event.__dict__)