Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/l/i/linuxband-HEAD/src/main/python/linuxband/mma/parse.py   linuxband(Download)
    elif action == Glob.A_REPEAT_ENDING: #
        line = tokenize_line(wline[0], 2)
    elif action == Glob.A_TEMPO: # ['Tempo', ' ', '120', '\n']
        line = tokenize_line(wline[0], 2)
    elif action == Glob.A_TIME: # ['Time', ' ', '4'. '\n' ]
    Glob.A_REPEAT_END, \
    Glob.A_REPEAT_ENDING, \
    Glob.A_TEMPO, \
    Glob.A_TIME
 

src/l/i/linuxband-HEAD/src/main/python/linuxband/gui/events_bar.py   linuxband(Download)
        # add event menu
        event_items = { Glob.A_GROOVE: "Groove change",
                      Glob.A_TEMPO: "Tempo change",
                      Glob.A_REPEAT: "Repeat",
                      Glob.A_REPEAT_ENDING: "RepeatEnding",
        # for dynamic event creation
        self.__event_windows = { Glob.A_GROOVE: groove_window,
                              Glob.A_TEMPO: tempo_window,
                              Glob.A_REPEAT: repeat_window,
                              Glob.A_REPEAT_ENDING: repeat_ending_window,
                              Glob.A_REPEAT_END: repeat_end_window }
 
        self.__event_window_handlers = { Glob.A_GROOVE: self.__eventGroove, # reusing already existing object
                                      Glob.A_TEMPO: self.__eventTempo,

src/l/i/linuxband-HEAD/src/main/python/linuxband/mma/bar_info.py   linuxband(Download)
    def get_tempo(self):
        return self.__lookup_action(Glob.A_TEMPO)
 
    def get_lines(self):
        return self.__lines
    def create_event(eventTitle):
        eventsInit = { Glob.A_GROOVE:       [ Glob.A_GROOVE, "Groove", " ", "50sRock", "\n" ],
                       Glob.A_TEMPO:        [ Glob.A_TEMPO, "Tempo", " ", "120", "\n" ],
                       Glob.A_REPEAT:       [ Glob.A_REPEAT, "Repeat", "\n" ],
                       Glob.A_REPEAT_ENDING: [ Glob.A_REPEAT_ENDING, "RepeatEnding", "\n" ],

src/l/i/linuxband-HEAD/src/main/python/linuxband/gui/events/tempo.py   linuxband(Download)
    def on_spinbutton2_value_changed_callback(self, spinbutton):
        """ Tempo changed """
        count = str(int(spinbutton.get_value()))
        event = BarInfo.create_event(Glob.A_TEMPO)
        BarInfo.set_tempo_value(event, count)