Default values for args for do_slide_in and do_slide_out, and add is_visisble()

This commit is contained in:
Dan Williams 2006-09-28 16:11:29 -04:00
parent 5a6a0d2d7d
commit a91738d3a9

View File

@ -210,14 +210,19 @@ class Frame:
if self._mode == Frame.TEMPORARY: if self._mode == Frame.TEMPORARY:
self._timeline.play('before_slide_out', 'slide_out') self._timeline.play('before_slide_out', 'slide_out')
def do_slide_in(self, current, n_frames): def do_slide_in(self, current=0, n_frames=0):
if not self._windows[0].props.visible: if not self._windows[0].props.visible:
for panel in self._windows: for panel in self._windows:
panel.show() panel.show()
self._event_frame.hide() self._event_frame.hide()
def do_slide_out(self, current, n_frames): def do_slide_out(self, current=0, n_frames=0):
if self._windows[0].props.visible: if self._windows[0].props.visible:
for panel in self._windows: for panel in self._windows:
panel.hide() panel.hide()
self._event_frame.show() self._event_frame.show()
def is_visible(self):
if self._windows[0].props.visible:
return True
return False