2 from xmlrpc
.client
import ServerProxy
3 from ya2
.utils
.gui
.base_page
import BasePage
, ButtonArgs
6 class MainPage(BasePage
):
8 def _build_widgets(self
):
9 play_args
= ButtonArgs(
13 command
=self
._set
_page
,
14 command_args
=['play'])
15 self
._add
_button
(play_args
)
16 option_args
= ButtonArgs(
20 command
=self
._set
_page
,
21 command_args
=['options'])
22 self
._add
_button
(option_args
)
23 credits_args
= ButtonArgs(
27 command
=self
._set
_page
,
28 command_args
=['credits'])
29 self
._add
_button
(credits_args
)
30 exit_args
= ButtonArgs(
34 command
=self
.__on
_exit
)
35 self
._add
_button
(exit_args
)
36 self
._rearrange
_buttons
_width
()
39 if self
._page
_info
.running_functional_tests
:
40 ServerProxy('http://localhost:7000').destroy()