diff options
author | Dan Williams <dcbw@localhost.localdomain> | 2006-09-28 20:11:29 (GMT) |
---|---|---|
committer | Dan Williams <dcbw@localhost.localdomain> | 2006-09-28 20:11:29 (GMT) |
commit | a91738d3a9a85b46952995df12ed473692e5c2e6 (patch) | |
tree | 4097a9846efea7afefdbe42bb0c60352c76ba676 /shell | |
parent | 5a6a0d2d7d13613b2cb312bca41c36dc608ea032 (diff) |
Default values for args for do_slide_in and do_slide_out, and add is_visisble()
Diffstat (limited to 'shell')
-rw-r--r-- | shell/view/frame/Frame.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/shell/view/frame/Frame.py b/shell/view/frame/Frame.py index ef0077a..0206080 100644 --- a/shell/view/frame/Frame.py +++ b/shell/view/frame/Frame.py @@ -210,14 +210,19 @@ class Frame: if self._mode == Frame.TEMPORARY: 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: for panel in self._windows: panel.show() 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: for panel in self._windows: panel.hide() self._event_frame.show() + + def is_visible(self): + if self._windows[0].props.visible: + return True + return False |