gateway switch bug fix,Click()

This commit is contained in:
cuu 2019-01-07 20:37:26 +08:00
parent f3776f1c51
commit 4837bfcf60

View File

@ -159,7 +159,7 @@ class GateWayPage(Page):
cur_li = self._MyList[self._PsIndex]
if cur_li._Active == True:
out = commands.getstatusoutput("sudo ip route | grep default | cut -d " " -f3")
out = commands.getstatusoutput("sudo ip route | grep default | cut -d \" \" -f3")
if len(out[1]) > 7:
self._Screen._MsgBox.SetText(out[1])
self._Screen._MsgBox.Draw()