Updating labels
This commit is contained in:
parent
38e1219133
commit
b925f1a130
|
@ -58,7 +58,7 @@ class Pinger:
|
||||||
)
|
)
|
||||||
out, error = ping.communicate()
|
out, error = ping.communicate()
|
||||||
if error:
|
if error:
|
||||||
label = "!! FAIL !!"
|
label = "PING FAIL"
|
||||||
else:
|
else:
|
||||||
m = re.search('time=(.*) ms', out)
|
m = re.search('time=(.*) ms', out)
|
||||||
label = m.group(1)+" ms"
|
label = m.group(1)+" ms"
|
||||||
|
@ -86,7 +86,7 @@ class Pinger:
|
||||||
"", # no icon
|
"", # no icon
|
||||||
appindicator.IndicatorCategory.COMMUNICATIONS)
|
appindicator.IndicatorCategory.COMMUNICATIONS)
|
||||||
self.ind.set_status (appindicator.IndicatorStatus.ACTIVE)
|
self.ind.set_status (appindicator.IndicatorStatus.ACTIVE)
|
||||||
self.ind.set_label ("0.0 ms", "100.0 ms")
|
self.ind.set_label ("Pinger Loading...", "Pinger Loading...")
|
||||||
|
|
||||||
# create a menu
|
# create a menu
|
||||||
self.menu = Gtk.Menu()
|
self.menu = Gtk.Menu()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user