comparison bin/keyboardcomposer @ 733:53da47fd5a90

KC doesn't crash when you're testing a show with no subs Ignore-this: ba2d8218a20140f563d831a44407a252
author Drew Perttula <drewp@bigasterisk.com>
date Fri, 15 Jun 2012 02:18:43 +0000
parents 27fdbe9a8118
children d230824728aa
comparison
equal deleted inserted replaced
732:440d116ba5df 733:53da47fd5a90
106 self.slider_table = {} # this holds coords:sub Tk vars 106 self.slider_table = {} # this holds coords:sub Tk vars
107 self.name_to_subtk.clear() # subname : SubmasterTk instance 107 self.name_to_subtk.clear() # subname : SubmasterTk instance
108 108
109 self.make_key_hints() 109 self.make_key_hints()
110 self.draw_sliders() 110 self.draw_sliders()
111 self.change_row(self.current_row) 111 if len(self.rows):
112 self.rows[self.current_row].focus() 112 self.change_row(self.current_row)
113 self.rows[self.current_row].focus()
113 114
114 self.buttonframe = Frame(self, bg='black') 115 self.buttonframe = Frame(self, bg='black')
115 self.buttonframe.pack(side=BOTTOM) 116 self.buttonframe.pack(side=BOTTOM)
116 117
117 self.sliders_status_var = IntVar() 118 self.sliders_status_var = IntVar()