31 lines
850 B
Python
31 lines
850 B
Python
"""
|
|
Contains the logic for the MVC of CreoMigrate Gui
|
|
"""
|
|
|
|
class Controller():
|
|
"""
|
|
Class for manipulating the model and returning data for the view
|
|
"""
|
|
def __init__(self, model):
|
|
self.model = model
|
|
|
|
def get_current_asm_id(self):
|
|
self.model.get_current_asm_id()
|
|
def set_current_asm_id(self, asm_id):
|
|
self.model.set_current_asm_id(asm_id)
|
|
|
|
def set_red_ids(self, red_ids):
|
|
self.model.set_red_ids(red_ids)
|
|
def get_red_ids(self):
|
|
return self.model.get_red_ids()
|
|
|
|
def set_parent_children(self, parent_children_mapping):
|
|
self.model.set_parent_children(parent_children_mapping)
|
|
def get_parent_children(self):
|
|
return self.model.get_parent_children()
|
|
def set_data(self, key, value):
|
|
self.model.set_data(key, value)
|
|
|
|
if __name__ == "__main__":
|
|
pass
|