Let's say I want to output a message "hi". The string is created in the controller class, then passed to a handler in the model class, and then to an output function in the view class.
e.g.
class Controller:
def __init__(self):
self.model = Model()
def myMessage(self):
self.model.messageHandler('hi')
class Model:
def __init__(self):
self.view = View()
def messageHandler(self, msg):
self.view.display_my_message(msg)
class View:
def display_my_message(self, message)
print(message)
The "controller" never touches the view, but passing the string down the classes like that seems to be a bit disconcerting to me, since it's almost like I could've just typed print('hi')
initially, which would obviously violated MVC principles.