mirror of
https://github.com/markqvist/Sideband.git
synced 2026-12-03 21:30:05 -05:00
Restructured repository
This commit is contained in:
parent
46269dd82b
commit
0de4c12c17
274 changed files with 51617 additions and 45 deletions
16
sbapp/kivymd/tools/patterns/MVC/Utility/observer.py_tmp
Normal file
16
sbapp/kivymd/tools/patterns/MVC/Utility/observer.py_tmp
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# Of course, "very flexible Python" allows you to do without an abstract
|
||||
# superclass at all or use the clever exception `NotImplementedError`. In my
|
||||
# opinion, this can negatively affect the architecture of the application.
|
||||
# I would like to point out that using Kivy, one could use the on-signaling
|
||||
# model. In this case, when the state changes, the model will send a signal
|
||||
# that can be received by all attached observers. This approach seems less
|
||||
# universal - you may want to use a different library in the future.
|
||||
|
||||
|
||||
class Observer:
|
||||
"""Abstract superclass for all observers."""
|
||||
|
||||
def model_is_changed(self):
|
||||
"""
|
||||
The method that will be called on the observer when the model changes.
|
||||
"""
|
||||
Loading…
Add table
Add a link
Reference in a new issue