예제 #1
0
    def __init__(self, tracklist):
        MsqListMenu.__init__(self)
        self.tracklist = tracklist

        self.mlm_add_root_item("Show track", self.show_track)
        self.mlm_add_root_item("Rename track", self.rename_track)
        self.mlm_add_root_item("Copy track", self.copy_track)
        self.mlm_add_root_item("Delete track", self.del_track)

        menutrack = self.mlm_add_submenu(self, "Configure track")
        self.mlm_add_menu_item(menutrack, "Loop", self.set_loop)
        self.mlm_add_menu_item(menutrack, "Output", self.set_output)

        self.mlm_add_menu_separator(menutrack)

        menualltracks = self.mlm_add_submenu(menutrack, "All tracks")
        self.mlm_add_menu_item(menualltracks, "Loop", self.menu_set_loop_all)
        self.mlm_add_menu_item(menualltracks, "Output", self.menu_set_output_all)

        self.mlm_add_root_separator()

        self.mlm_add_root_item("Add key binding", self.add_key_binding)
        self.mlm_add_root_item("Add note binding", self.add_note_binding)
        self.mlm_add_root_item("Del bindings", self.del_track_bindings)
        self.mlm_add_root_item("Clear all bindings", self.clear_all_bindings)
예제 #2
0
    def __init__(self, outputlist):
        MsqListMenu.__init__(self)
        self.outputlist = outputlist

        self.mlm_add_root_item("Rename output", self.rename_output)
        separator = gtk.SeparatorMenuItem()
        separator.show()
        self.append(separator)
        self.mlm_add_root_item("Delete output", self.del_output)