This commit is contained in:
yumoqing 2021-01-04 20:00:26 +08:00
parent bf2e9bc1e3
commit 870d17f6b3

View File

@ -16,7 +16,7 @@ from appPublic.registerfunction import RegisterFunction
from kivy.config import Config from kivy.config import Config
from kivy.metrics import sp,dp,mm from kivy.metrics import sp,dp,mm
from kivy.core.window import WindowBase from kivy.core.window import WindowBase, Window
from kivy.properties import BooleanProperty from kivy.properties import BooleanProperty
from kivy.uix.widget import Widget from kivy.uix.widget import Widget
from kivy.app import App from kivy.app import App
@ -549,7 +549,8 @@ class Blocks(EventDispatcher):
return ret return ret
app = App.get_running_app() app = App.get_running_app()
if from_widget == app.root: if from_widget == app.root:
w = getattr(app,'fs_widget',None) if Window.fullscreen == True:
w = app.fs_widget
if w: if w:
print('full screen ...............................') print('full screen ...............................')
return find_widget_by_id(id, w) return find_widget_by_id(id, w)