mirror of
https://github.com/283375/arcaea-offline-pyside-ui.git
synced 2025-07-01 12:26:26 +00:00
impr: add TabOverview
database describe label
This commit is contained in:
@ -21,3 +21,18 @@ class TabOverview(Ui_TabOverview, QWidget):
|
||||
def updateOverview(self):
|
||||
b30 = self.db.get_b30() or 0.00
|
||||
self.b30Label.setText(str(f"{b30:.3f}"))
|
||||
self.retranslateUi(self)
|
||||
|
||||
def retranslateUi(self, *args):
|
||||
super().retranslateUi(self)
|
||||
db = Database()
|
||||
describeText = self.databaseDescribeLabel.text()
|
||||
describeText = describeText.format(
|
||||
db.count_packs(),
|
||||
db.count_songs(),
|
||||
db.count_difficulties(),
|
||||
db.count_chart_infos(),
|
||||
db.count_complete_chart_infos(),
|
||||
db.count_scores(),
|
||||
)
|
||||
self.databaseDescribeLabel.setText(describeText)
|
||||
|
Reference in New Issue
Block a user