Skip to content

emit directly from add_observer() #11

@kubaraczkowski

Description

@kubaraczkowski

Hi,

Speaking about PyQt4, would it be possible to attach emitting a signal directly at a place where add_observer is called?
like this in the view part:

self.model.set_state.add_observer(self._model_state_change_signal.emit)

considering that model.set_state has appropriate decorator and that the set_state method takes one argument which fits to the _model_state_change_signal type

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions