Revision: 4166
Author: janne.t.harkonen
Date: Wed Sep 29 12:20:43 2010
Log: fix names
http://code.google.com/p/robotframework/source/detail?r=4166
Modified:
/trunk/proto/atdd-tutorial-berlin-2010/src/vacalc/ui.py
=======================================
--- /trunk/proto/atdd-tutorial-berlin-2010/src/vacalc/ui.py Wed Sep 29
11:49:05 2010
+++ /trunk/proto/atdd-tutorial-berlin-2010/src/vacalc/ui.py Wed Sep 29
12:20:43 2010
@@ -78,9 +78,9 @@
itempanel.add(JLabel(text='Start'))
self._start_date_editor = JTextField(name='start_input')
itempanel.add(self._start_date_editor)
- button = JButton('Save', name='name_button')
+ button = JButton('Save', name='save_button')
button.addActionListener(ListenerFactory(ActionListener,
- self._add_button_pushed))
+ self._save_button_pushed))
itempanel.add(Box.createHorizontalStrut(1))
btnpanel = Box.createHorizontalBox()
btnpanel.add(btnpanel.createHorizontalStrut(80))
@@ -100,7 +100,7 @@
def widget(self):
return self._panel
- def _add_button_pushed(self, event):
+ def _save_button_pushed(self, event):
self._employees.add(self._name_editor.getText(),
self._start_date_editor.getText(), self)