def __set_layout(self, character):
        self.message_display = EventMessageWidget(self)
        self.setWidget(self.message_display)
        self.setWindowTitle('Messages')

        character.register_event_listener(self.message_display)
        self.message_display.set_point_of_view(character)
Set layout of this widget
dataset/ETHPy150Open tuturto/pyherc/src/herculeum/ui/gui/eventdisplay.py/EventMessageDockWidget.__set_layout