ui/word_select: fix btns styles

This commit is contained in:
Peter Jensen 2018-01-23 15:40:20 +01:00 committed by Jan Pochyla
parent fac8932a85
commit ea6763c4ec
1 changed files with 4 additions and 8 deletions

View File

@ -15,17 +15,13 @@ class WordSelector(Widget):
def __init__(self, content): def __init__(self, content):
self.content = content self.content = content
self.w12 = Button(ui.grid(8, n_y=4, n_x=4, cells_x=2), str(_W12), self.w12 = Button(ui.grid(8, n_y=4, n_x=4, cells_x=2), str(_W12),
normal_style=ui.BTN_KEY, style=ui.BTN_KEY)
active_style=ui.BTN_KEY_ACTIVE)
self.w15 = Button(ui.grid(10, n_y=4, n_x=4, cells_x=2), str(_W15), self.w15 = Button(ui.grid(10, n_y=4, n_x=4, cells_x=2), str(_W15),
normal_style=ui.BTN_KEY, style=ui.BTN_KEY)
active_style=ui.BTN_KEY_ACTIVE)
self.w18 = Button(ui.grid(12, n_y=4, n_x=4, cells_x=2), str(_W18), self.w18 = Button(ui.grid(12, n_y=4, n_x=4, cells_x=2), str(_W18),
normal_style=ui.BTN_KEY, style=ui.BTN_KEY)
active_style=ui.BTN_KEY_ACTIVE)
self.w24 = Button(ui.grid(14, n_y=4, n_x=4, cells_x=2), str(_W24), self.w24 = Button(ui.grid(14, n_y=4, n_x=4, cells_x=2), str(_W24),
normal_style=ui.BTN_KEY, style=ui.BTN_KEY)
active_style=ui.BTN_KEY_ACTIVE)
def render(self): def render(self):
self.w12.render() self.w12.render()