removed backend

This commit is contained in:
Wiktor Mazur
2020-05-25 17:02:41 +02:00
parent c867075b2d
commit a2f25750e2
95 changed files with 3 additions and 18539 deletions
+23
View File
@@ -0,0 +1,23 @@
import datetime
from PySide2.QtWidgets import QLabel # type: ignore
from PySide2 import QtGui # type: ignore
from PySide2 import QtCore # type: ignore
from src.utils import assets, number
from src.stats.list_item import PlayerListItem
from src import engine
class PlayerStats(QLabel):
def __init__(self):
QLabel.__init__(self)
self.update(0, number.Number(0.0), number.Number(0.0))
def update(self, elapsed, fame, fame_per_hour):
if engine.is_ready():
self.setText("<b>{}</b> | Fame <b>{}</b> | FPH <b>{}</b>".format(
datetime.timedelta(seconds=elapsed), fame, fame_per_hour))
else:
self.setText("Not ready: waiting for zone change")