Skip to content
Snippets Groups Projects
Commit dd4fa9c3 authored by Vincent Texier's avatar Vincent Texier
Browse files

remove balance in percent and double size of font for account total

parent b75b70af
Branches
Tags
No related merge requests found
......@@ -70,6 +70,13 @@ QGroupBox::title {
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QLabel" name="label_balance">
<property name="font">
<font>
<pointsize>22</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>label_balance</string>
</property>
......
......@@ -4,10 +4,10 @@ Created on 15 févr. 2015
@author: inso
"""
import logging
from PyQt5.QtWidgets import QWidget, QMenu, QAction, QApplication, QDialog
from PyQt5.QtCore import QDateTime, QModelIndex, Qt, QLocale
from PyQt5.QtGui import QCursor
from ..core.registry import Identity
from ..core.wallet import Wallet
from ..gui.password_asker import PasswordAskerDialog
......@@ -132,16 +132,7 @@ class WalletsTabWidget(QWidget, Ui_WalletsTab):
# set infos in label
self.label_balance.setText(
self.tr("""
<table cellpadding="5">
<tr><td align="right"><b>{:}</b></td><td>{:}</td></tr>
<tr><td align="right"><b>{:}</b></td><td>{:}</td></tr>
</table>
""").format(
self.tr("Your money share "),
self.tr("{:.2f}%").format(amount / maximum * 100) if maximum != 0 else "0%",
self.tr("Your part "),
self.tr("{:} {:} in [{:} ; {:}] {:}")
self.tr("<center><b>{:} {:} in [{:} ; {:}] {:}</b></center>")
.format(
localized_amount,
self.get_referential_name(),
......@@ -149,7 +140,7 @@ class WalletsTabWidget(QWidget, Ui_WalletsTab):
localized_maximum,
self.get_referential_name()
)
)
)
def get_referential_value(self, value):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment