1 from logging
import info
2 from direct
.showbase
.DirectObject
import DirectObject
3 from ya2
.utils
.cursor
import MouseCursor
6 class BasePage(DirectObject
):
8 def __init__(self
, menu
, running_functional_tests
):
11 self
._enforced
_resolution
= ''
12 self
._cursor
= MouseCursor(
13 'assets/images/buttons/arrowUpLeft.dds', (.04, 1, .04), (.5, .5, .5, 1),
14 (.01, .01), running_functional_tests
)
16 def enforce_resolution(self
, resolution
):
17 self
._enforced
_resolution
= resolution
18 info('enforced resolution: ' + resolution
)
21 self
._option
_file
.store()
22 self
._menu
.set_page('main')
26 [wdg
.destroy() for wdg
in self
._widgets
]
27 self
._cursor
.destroy()
28 self
.ignore('enforce_resolution')