gaphor.ui.abc 源代码

import abc

from gaphor.abc import Service


[文档] class UIComponent(Service): """A user interface component."""
[文档] @abc.abstractmethod def open(self): """Create and display the UI components (windows)."""
[文档] @abc.abstractmethod def close(self): """Close the UI component. The component can decide to hide or destroy the UI components. """
[文档] def shutdown(self): """Shut down this component. It's not supposed to be opened again. """ self.close()