Permalink
Browse files

refactoring of widgets

  • Loading branch information...
cflavio committed Nov 7, 2018
1 parent ef54532 commit eeafb4cfba01e29b7cfdc14ab80451bdc82e8a4b
Showing with 4 additions and 4 deletions.
  1. +3 −3 menu/numplayerspage.py
  2. +1 −1 yyagl
View
@@ -16,13 +16,13 @@ def build(self):
players_lab = Text(_('How many players?'), pos=(-.2, .6),
align='center', **t_a)
p2_btn = Btn(
text='2', pos=(-.2, 1, .2), command=self.on_btn, extraArgs=[2],
text='2', pos=(-.2, .2), cmd=self.on_btn, extra_args=[2],
**self.props.gameprops.menu_args.btn_args)
p3_btn = Btn(
text='3', pos=(-.2, 1, 0), command=self.on_btn, extraArgs=[3],
text='3', pos=(-.2, 0), cmd=self.on_btn, extra_args=[3],
**self.props.gameprops.menu_args.btn_args)
p4_btn = Btn(
text='4', pos=(-.2, 1, -.2), command=self.on_btn, extraArgs=[4],
text='4', pos=(-.2, -.2), cmd=self.on_btn, extra_args=[4],
**self.props.gameprops.menu_args.btn_args)
t_a['scale'] = .06
widgets = [p2_btn, p3_btn, p4_btn, players_lab]
2 yyagl

0 comments on commit eeafb4c

Please sign in to comment.