bugfix
This commit is contained in:
parent
3a20081f39
commit
8552dfd469
@ -84,11 +84,11 @@ class OrientationLayout(WidgetReady, SwipeBehavior, FloatLayout):
|
|||||||
self.widget_second.pos = (0,0)
|
self.widget_second.pos = (0,0)
|
||||||
self.widget_second.opacity = 0.6
|
self.widget_second.opacity = 0.6
|
||||||
if not self.widget_main in self.children:
|
if not self.widget_main in self.children:
|
||||||
|
print('horizontal:main_widget:width=%.02f,height=%.02f,pos=(%.02f,%.02f)' % (self.widget_main.width,self.widget_main.height,*self.widget_main.pos))
|
||||||
self.add_widget(self.widget_main)
|
self.add_widget(self.widget_main)
|
||||||
if self.widget_second in self.children:
|
if self.widget_second in self.children:
|
||||||
self.remove_widget(self.widget_second)
|
self.remove_widget(self.widget_second)
|
||||||
print('main_widget:width=%.02f,height=%.02f,pos=(%.02f,%.02f)' % (self.widget_main.width,self.widget_main.height,*self.widget_main.pos))
|
print('horizontal:second_widget:width=%.02f,height=%.02f,pos=(%.02f,%.02f)' % (self.widget_second.width,self.widget_second.height,*self.widget_second.pos))
|
||||||
print('second_widget:width=%.02f,height=%.02f,pos=(%.02f,%.02f)' % (self.widget_second.width,self.widget_second.height,*self.widget_second.pos))
|
|
||||||
if self.second_flg:
|
if self.second_flg:
|
||||||
self.add_widget(self.widget_second)
|
self.add_widget(self.widget_second)
|
||||||
|
|
||||||
@ -107,10 +107,10 @@ class OrientationLayout(WidgetReady, SwipeBehavior, FloatLayout):
|
|||||||
self.widget_second.opacity = 1
|
self.widget_second.opacity = 1
|
||||||
if not self.widget_main in self.children:
|
if not self.widget_main in self.children:
|
||||||
self.add_widget(self.widget_main)
|
self.add_widget(self.widget_main)
|
||||||
|
print('vertical:main_widget:width=%.02f,height=%.02f,pos=(%.02f,%.02f)' % (self.widget_main.width,self.widget_main.height,*self.widget_main.pos))
|
||||||
if not self.widget_second in self.children:
|
if not self.widget_second in self.children:
|
||||||
self.add_widget(self.widget_second)
|
self.add_widget(self.widget_second)
|
||||||
print('main_widget:width=%.02f,height=%.02f,pos=(%.02f,%.02f)' % (self.widget_main.width,self.widget_main.height,*self.widget_main.pos))
|
print('vertical:second_widget:width=%.02f,height=%.02f,pos=(%.02f,%.02f)' % (self.widget_second.width,self.widget_second.height,*self.widget_second.pos))
|
||||||
print('second_widget:width=%.02f,height=%.02f,pos=(%.02f,%.02f)' % (self.widget_second.width,self.widget_second.height,*self.widget_second.pos))
|
|
||||||
|
|
||||||
def main_widget_built(self,o,w):
|
def main_widget_built(self,o,w):
|
||||||
print('main_widget_built() called ...')
|
print('main_widget_built() called ...')
|
||||||
|
Loading…
Reference in New Issue
Block a user