Modul in Einzelteile zerlegt
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
"""
|
||||
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
|
||||
Reference in New Issue
Block a user