def correct_word_bar(size, word, pos=(0, 0)): bar = Button(dims=size, text="The correct word was: " + word) bar.pos = pos bar.back_color_n = (12, 12, 55) bar.back_color_h = (3, 32, 11) bar.font_color = (255, 4, 255) return bar.show()
def noData(size, pos=(0, 0)): bar = Button(dims=size, text="No Data collected!") bar.pos = pos bar.back_color_n = (12, 12, 55) bar.back_color_h = (3, 32, 11) bar.font_color = (255, 225, 255) return bar.show()
def gogo(size, pos=(0, 0)): bar = Button(dims=size, text="GO!") bar.pos = pos bar.back_color_n = (12, 12, 55) bar.back_color_h = (3, 32, 11) bar.font_color = (2, 255, 2) return bar.show()
def sorry(size, word, pos=(0, 0)): bar = Button(dims=size, text="Sorry! You have performed: " + word) bar.pos = pos bar.back_color_n = (12, 12, 55) bar.back_color_h = (3, 32, 11) bar.font_color = (255, 4, 3) return bar.show()
def congrats(size, pos=(0, 0)): bar = Button(dims=size, text="Congratulations! You got it!") bar.pos = pos bar.back_color_n = (12, 12, 55) bar.back_color_h = (3, 32, 11) bar.font_color = (2, 255, 3) return bar.show()
def wordBar(size, word, pos=(0, 0)): bar = Button(dims=size, text="word: " + word) bar.pos = pos bar.back_color_n = (12, 12, 155) bar.back_color_h = (32, 32, 115) bar.font_color = (255, 255, 12) return bar.show()
def topBar(size, pos=(0, 0)): bar = Button(dims=size, text="Louder than words") bar.pos = pos bar.back_color_n = (129, 120, 13) bar.back_color_h = (129, 120, 13) bar.font_color = THECOLORS["white"] bar.font_fam = "ui/fonts/cursive.ttf" return bar.show()
def processing(size, pos=(0, 0)): bar = Button(dims=size, text="processing...") #r= rn.randint(0,255); #g = rn.randint(0,255); bar.pos = pos bar.back_color_n = (12, 12, 55) bar.back_color_h = (3, 255, 255) #bar.font_color = (r,g,3); bar.font_color = (247, 255, 40) return bar.show()