Moved document stats to the details panel below the tree

This commit is contained in:
Veronica K. B. Olsen
2020-05-21 20:29:40 +02:00
parent 8aacad8ce0
commit 2a9bdd1985
3 changed files with 88 additions and 53 deletions
+3 -16
View File
@@ -195,22 +195,9 @@ class GuiMainStatus(QStatusBar):
def _updateStats(self):
"""Update statistics.
"""
self.statsText.setToolTip((
"<b>Document Stats</b><br>"
"Characters: {cC:n}<br>"
"Words: {wC:n}<br>"
"Paragraphs: {pC:n}<br>"
"<br>"
"<b>Project Stats</b><br>"
"Words Total: {pWC:n}<br>"
"This Session: {sWC:n}"
).format(
cC = self.charCount,
wC = self.wordCount,
pC = self.paraCount,
pWC = self.projWords,
sWC = self.sessWords,
))
self.statsText.setToolTip(
"D: Document word count<br>P: Project word count"
)
self.statsText.setText((
"D:{wC:n} P:{pWC:n} ({sWC:+n})"
).format(