projects
/
matthijs
/
upstream
/
mobilegtd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f5dcb1f
)
Rename change_entry to entry_selected.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Mon, 17 Aug 2009 22:14:15 +0000
(
00:14
+0200)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Mon, 17 Aug 2009 22:14:15 +0000
(
00:14
+0200)
src/gui/gui.py
patch
|
blob
|
history
diff --git
a/src/gui/gui.py
b/src/gui/gui.py
index 30ae4e2745bd6290ac47487bfdffca6d57c748f9..815edc5be6fc2cda7afcbc6334a8a7565d63f5e2 100644
(file)
--- a/
src/gui/gui.py
+++ b/
src/gui/gui.py
@@
-149,14
+149,14
@@
class View(object):
class ListView(View):
def __init__(self):
super(ListView, self).__init__()
class ListView(View):
def __init__(self):
super(ListView, self).__init__()
- self.set_view(appuifw.Listbox(self.items(),self.
change_entry
))
+ self.set_view(appuifw.Listbox(self.items(),self.
entry_selected
))
- def
change_entry
(self):
+ def
entry_selected
(self):
"""
This function is called when the user selects an an entry (e.g.,
navigates to it and push the ok button).
"""
"""
This function is called when the user selects an an entry (e.g.,
navigates to it and push the ok button).
"""
- super(ListView).
change_entry
()
+ super(ListView).
entry_selected
()
def update(self,subject=None):
#logger.log(u'Updated %s'%repr(self))
def update(self,subject=None):
#logger.log(u'Updated %s'%repr(self))
@@
-310,7
+310,7
@@
class EditableListView(SearchableListView,KeyBindingView):
key_and_menu_bindings.append((get_key(key),key,description,execute_and_update_function))
return key_and_menu_bindings
key_and_menu_bindings.append((get_key(key),key,description,execute_and_update_function))
return key_and_menu_bindings
- def
change_entry
(self):
+ def
entry_selected
(self):
self.current_widget().change()
self.refresh()
def execute_and_update(self,function):
self.current_widget().change()
self.refresh()
def execute_and_update(self,function):