mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-06 22:54:16 +02:00
21 lines
492 B
Python
21 lines
492 B
Python
from enum import Enum
|
|
|
|
from bauh_api.abstract.model import Application
|
|
|
|
|
|
class ApplicationViewStatus(Enum):
|
|
LOADING = 0
|
|
READY = 1
|
|
|
|
|
|
class ApplicationView:
|
|
|
|
def __init__(self, model: Application, visible: bool = True):
|
|
self.model = model
|
|
self.update_checked = model.update
|
|
self.visible = visible
|
|
self.status = ApplicationViewStatus.LOADING
|
|
|
|
def __repr__(self):
|
|
return '{} ( {} )'.format(self.model.base_data.name, self.model.get_type())
|