def __init__(self, model):
Controller.__init__(self, model)
- return
def register_view(self, view):
Controller.register_view(self, view)
self.view.set_quantity_value(self.model.quantity)
self.view.set_start_path_value(self.model.start_path)
- return
-
# -----------------------------------------------------
# user callbacks
# -----------------------------------------------------
def on_qty_spin_value_changed(self, sb):
# Получаем значение количества файлов из SpinButton
self.model.quantity = sb.get_value_as_int()
- return
def start_btn_released_cb(self, btn):
"""Start file search. Button "Go" activate callback."""
# -----------------------------------------------------
def property_quantity_value_change(self, model, old, new):
+ pass
#self.view.set_quantity_value(new)
- return
def property_start_path_value_change(self, model, old, new):
print model, old, new
self.view.set_start_path_value(new)
- return
def property_stopit_value_change(self, model, old, new):
self.view.set_stopit_value(new)
- return
-
- pass # end of class