This commit is contained in:
yumoqing 2019-12-23 10:15:00 +08:00
parent 7f5c8ff1ff
commit 624c237b53

View File

@ -18,6 +18,13 @@ from kivy.properties import ObjectProperty, StringProperty, BooleanProperty, \
from .utils import *
from .baseWidget import PressableImage
desktopOSs=[
"win",
"linux",
"macosx"
]
othersplatforms=['ios','android']
class VPlayer(FloatLayout):
fullscreen = BooleanProperty(False)
@ -226,7 +233,7 @@ class VPlayer(FloatLayout):
'window_children': window.children[:]}
print('vplayer fullscreen,platform=',platform)
if platform in ['windows', 'linux','macOS' ]:
if platform in desktopOSs:
Window.maximize()
# remove all window children
for child in window.children[:]:
@ -256,7 +263,7 @@ class VPlayer(FloatLayout):
if state['parent'] is not window:
state['parent'].add_widget(self)
print('vplayer fullscreen,platform=',platform)
if platform in ['windows', 'linux','macOS' ]:
if platform in desktopOSs:
Window.restore()
def buildMenu(self,obj,touch):