Button tooltips

This commit is contained in:
2023-01-10 20:16:26 +01:00
parent 9b007dcf47
commit 09dbb1fd4d

22
main.py
View File

@@ -15,9 +15,10 @@ import configparser
from pandastable import Table
import pathlib
import cnb_exchange_rate
from tktooltip import ToolTip
ver = "0.4.7"
ver = "0.4.9"
outvar = {}
@@ -287,12 +288,24 @@ def pairBis():
textid = completepairing[MSISDN]['textid']
UNIT = completepairing[MSISDN]['UNIT']
mu_id = completepairing[MSISDN]['mu_id']
# catch mu_id inconsistencies
if mu_id == "N/A":
mu_id = "N/A"
elif mu_id == "0":
mu_id = "N/A"
elif mu_id == "1":
mu_id = "N/A"
elif mu_id == "":
mu_id = "N/A"
print(amount)
if currency == "EUR":
amount = float(amount.replace(",", "." ))
amountczk = float(amount) * float(rate)
amountczk = round(amountczk, 2)
amountczk = str(amountczk).replace(".", "," )
amount = str(amount).replace(".", "," )
else:
amountczk = amount
@@ -913,10 +926,17 @@ b4 = tk.Button(root, text="Download pairing file",
pairbis = tk.Button(root, text="Pair BIS data",
command=lambda: pairBis(), width=20)
ToolTip(pairbis,'This merges the Ferengi merged file with BIS merged file', delay=2.0)
ToolTip(b3,'Merges all output files together after billing', delay=2.0)
ToolTip(b2,'This uses all modules for operators to obtain 4 output files', delay=2.0)
ToolTip(b1,'Checks all needed files', delay=2.0)
ToolTip(b4,'Downloads latest pairing.csv help file', delay=2.0)
buttonnewwindow = tk.Button(root,
text ="Show results",
command = buttonnewwindow, width=20)
ToolTip(buttonnewwindow,'Just a simple overview', delay=2.0)
# Everything to grid
tmgdpssection.place(x=10, y=10)