Author: dmeyer
Date: Sat Jan 20 20:16:31 2007
New Revision: 9013
Modified:
trunk/ui/src/menu/menu.py
Log:
remove show/hide functions from Menu
Modified: trunk/ui/src/menu/menu.py
==============================================================================
--- trunk/ui/src/menu/menu.py (original)
+++ trunk/ui/src/menu/menu.py Sat Jan 20 20:16:31 2007
@@ -32,7 +32,6 @@
__all__ = [ 'Menu' ]
# python imports
-import gc
import logging
# kaa imports
@@ -93,32 +92,12 @@
# Autoselect menu if it has only one item
self.autoselect = False
- # If the menu is the current visible and the menu stack itself is
- # visible, this variable is True
- self.visible= False
-
# how many rows and cols does the menu has
# (will be changed by the skin code)
self.cols = 1
self.rows = 1
- def show(self):
- """
- Show the menu. This will be called when this menu is on top of the
- menu stack.
- """
- self.visible = True
-
-
- def hide(self):
- """
- Hide the menu. A different menu is on top or the stack itself is not
- visible.
- """
- self.visible = False
-
-
def set_items(self, items, refresh=True):
"""
Set/replace the items in this menu. If refresh is True, the menu
@@ -301,8 +280,8 @@
if not actions or len(actions) <= 1:
return False
items = []
- for a in actions:
- items.append(Item(self.selected, a))
+ for action in actions:
+ items.append(Item(self.selected, action))
for i in items:
if not self.selected.type == 'main':
@@ -328,10 +307,3 @@
return True
return False
-
-
- def __del__(self):
- """
- Delete function of memory debugging
- """
- log.info('Delete menu %s' % self.heading)
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog