fixed fullscreen button
This commit is contained in:
Binary file not shown.
@@ -47,11 +47,13 @@ class ServerComs:
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def getfullscreeninfo(self, url):
|
def getfullscreeninfo(self, url):
|
||||||
|
print("fullscreencheck")
|
||||||
try:
|
try:
|
||||||
self.x = requests.get(f"{url}/fullscreen")
|
self.x = requests.get(f"{url}/fullscreen")
|
||||||
except Exception:
|
return self.x.text
|
||||||
pass
|
except Exception as e:
|
||||||
return self.x.text
|
print(e)
|
||||||
|
return "False"
|
||||||
|
|
||||||
def poststatus(self, url, isalive):
|
def poststatus(self, url, isalive):
|
||||||
print("updating status")
|
print("updating status")
|
||||||
|
|||||||
@@ -145,7 +145,8 @@ class Home(MDScreen):
|
|||||||
self.manager.transition.direction = "left"
|
self.manager.transition.direction = "left"
|
||||||
else:
|
else:
|
||||||
self.openpathfpu()
|
self.openpathfpu()
|
||||||
except:
|
except Exception as e:
|
||||||
|
print(e)
|
||||||
self.ivpathpu()
|
self.ivpathpu()
|
||||||
|
|
||||||
def openpathmpu(self):
|
def openpathmpu(self):
|
||||||
@@ -225,7 +226,7 @@ class Main(MDScreen):
|
|||||||
if address != "":
|
if address != "":
|
||||||
self.ids.connectstatus.text = f"Connected to: {address}"
|
self.ids.connectstatus.text = f"Connected to: {address}"
|
||||||
svc.poststatus(address, True)
|
svc.poststatus(address, True)
|
||||||
if svc.getfullscreeninfo == "True":
|
if svc.getfullscreeninfo(address) == "True":
|
||||||
self.ids.fullscreenc.text = "Exit fullscreen on client display"
|
self.ids.fullscreenc.text = "Exit fullscreen on client display"
|
||||||
else:
|
else:
|
||||||
self.ids.fullscreenc.text = 'Enter fullscreen on client display'
|
self.ids.fullscreenc.text = 'Enter fullscreen on client display'
|
||||||
|
|||||||
Reference in New Issue
Block a user