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