From 335dfc005a688bdc6ce38e6b0d7a2d675b29017c Mon Sep 17 00:00:00 2001 From: DYefremov Date: Sat, 12 Sep 2020 14:11:42 +0300 Subject: [PATCH] displaying sid value in uppercase for tooltips(#34) --- app/ui/main_app_window.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/ui/main_app_window.py b/app/ui/main_app_window.py index 1597b3c6..32de2063 100644 --- a/app/ui/main_app_window.py +++ b/app/ui/main_app_window.py @@ -997,13 +997,13 @@ class Application(Gtk.Application): def get_ssid_info(self, srv): """ Returns SID representation in hex and dec formats. """ try: - dec = "{0: 04d}".format(int(srv.ssid, 16)) + dec = "{0:04d}".format(int(srv.ssid, 16)) except ValueError as e: log("SID value conversion error: {}".format(e)) else: - return "SID: 0x{} ({})".format(srv.ssid, dec) + return "SID: 0x{} ({})".format(srv.ssid.upper(), dec) - return "SID: 0x{}".format(srv.ssid) + return "SID: 0x{}".format(srv.ssid.upper()) # ***************** Drag-and-drop *********************#