def add_pattern(self, widget, data=None): if data == None: pattern = self.song.add_pattern() pattern.set_len(8) pattern.add_track() pw = PatternWindow(self, pattern) pw.show() pw.maximize() else: pattern = data PatternWidget(self, pattern) self.refresh_channels() self.save_state = False
def btn_pattern_edit_clicked(self, widget, data=None): pw = PatternWindow(self.container, data) pw.show() pw.maximize()