This repository has been archived on 2019-12-09. You can view files and clone it, but cannot push or open issues or pull requests.
|
from abc import abstractmethod
|
|
|
|
|
|
class Component:
|
|
def __init__(self, parent):
|
|
self.parent = parent
|
|
self.parent.add(self)
|
|
|
|
@abstractmethod
|
|
def register(self):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def unregister(self):
|
|
pass
|