|
|
|
@ -170,7 +170,7 @@ class ServerPanel(wx.Panel):
|
|
|
|
|
else:
|
|
|
|
|
logintxt = "Not logged in"
|
|
|
|
|
|
|
|
|
|
stattxt = "Statistics:\nBlocked Connections: " + str(settings["stats"][0]) + " \nAllowed Connections: " + str(settings["stats"][1]) + " \nUpload count: " + str(settings["stats"][2]) + " \nDownload count: " + str(settings["stats"][3]) + " \nBlock ratio: " + str(settings["stats"][4])
|
|
|
|
|
stattxt = "Statistics:\nBlocked Connections: " + str(settings["stats"][0]) + " \nAllowed Connections: " + str(settings["stats"][1]) + " \nUpload count: " + str(settings["stats"][2]) + " \nDownload count: " + str(settings["stats"][3]) + " \nBlock ratio: " + str("{:.4f}".format(settings["stats"][4]))
|
|
|
|
|
self.statustext = wx.StaticText(self, label=txt) # pos=(20,20))
|
|
|
|
|
self.logintext = wx.StaticText(self, label=logintxt) # pos=(20,20))
|
|
|
|
|
self.stattext = wx.StaticText(self, label=stattxt)
|
|
|
|
@ -240,7 +240,7 @@ class ServerPanel(wx.Panel):
|
|
|
|
|
self.login_button.SetLabelText("Login")
|
|
|
|
|
logintxt = "Not logged in"
|
|
|
|
|
|
|
|
|
|
stattxt = "Statistics:\nBlocked Connections: " + str(settings["stats"][0]) + " \nAllowed Connections: " + str(settings["stats"][1]) + " \nUpload count: " + str(settings["stats"][2]) + " \nDownload count: " + str(settings["stats"][3]) + " \nBlock ratio: " + str(settings["stats"][4])
|
|
|
|
|
stattxt = "Statistics:\nBlocked Connections: " + str(settings["stats"][0]) + " \nAllowed Connections: " + str(settings["stats"][1]) + " \nUpload count: " + str(settings["stats"][2]) + " \nDownload count: " + str(settings["stats"][3]) + " \nBlock ratio: " + str("{:.4f}".format(settings["stats"][4]))
|
|
|
|
|
|
|
|
|
|
self.statustext.SetLabel(txt)
|
|
|
|
|
self.logintext.SetLabel(logintxt)
|
|
|
|
|