fixed fullscreen button

This commit is contained in:
janis
2022-10-30 19:53:55 +01:00
parent 1000b9ec41
commit a20331980f
3 changed files with 8 additions and 5 deletions

View File

@@ -47,11 +47,13 @@ class ServerComs:
return False
def getfullscreeninfo(self, url):
print("fullscreencheck")
try:
self.x = requests.get(f"{url}/fullscreen")
except Exception:
pass
return self.x.text
return self.x.text
except Exception as e:
print(e)
return "False"
def poststatus(self, url, isalive):
print("updating status")

View File

@@ -145,7 +145,8 @@ class Home(MDScreen):
self.manager.transition.direction = "left"
else:
self.openpathfpu()
except:
except Exception as e:
print(e)
self.ivpathpu()
def openpathmpu(self):
@@ -225,7 +226,7 @@ class Main(MDScreen):
if address != "":
self.ids.connectstatus.text = f"Connected to: {address}"
svc.poststatus(address, True)
if svc.getfullscreeninfo == "True":
if svc.getfullscreeninfo(address) == "True":
self.ids.fullscreenc.text = "Exit fullscreen on client display"
else:
self.ids.fullscreenc.text = 'Enter fullscreen on client display'