mirror of
https://github.com/DYefremov/DemonEditor.git
synced 2026-07-10 22:43:10 +02:00
displaying sid value in uppercase for tooltips(#34)
This commit is contained in:
@@ -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 *********************#
|
||||
|
||||
|
||||
Reference in New Issue
Block a user