Compare commits
1 Commits
1668567646
...
1669156158
Author | SHA1 | Date | |
---|---|---|---|
9ac35912dd |
@ -2,7 +2,7 @@ core:
|
||||
autostart: true
|
||||
clockspeed: 20
|
||||
interval: 5
|
||||
level: 2
|
||||
level: 3
|
||||
localadmin: true
|
||||
sftp:
|
||||
filepath:
|
||||
|
4
panel.py
4
panel.py
@ -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)
|
||||
|
Reference in New Issue
Block a user