Can I ask a last question...Would it not be better to house my Bottom carousel in a anchor layout and then the top carousel and overlay in another anchor layout...which will allow all these to centre and change in size with window...my current layouts have so many functions to deal with the adjusting...
Something like this which sadly I cannot get the two layouts to work in sync
# layout to house carousel bottom
lo = AnchorLayout(anchor_x='center', anchor_y='bottom',size_hint=(1, 1), size=(szW, szH))
self.carouselB_widget = Carousel(direction='right', size_hint=(1, 1), size=(szW, szH))
for img_file in os.listdir(img_path1):
if not self.image1:
self.image1 = img_file.split('.')[0].upper()
img = Image(source=os.path.join(img_path1, img_file), allow_stretch = True, keep_ratio = True, size_hint=(1,1))
self.carouselB_widget.add_widget(img)
lo.add_widget(self.carouselB_widget)
# layout to house level marker and carousel top
olo = AnchorLayout(anchor_x='center', anchor_y='bottom',size_hint=(1, 1), size=(szW, szH))
self.level_marker = StencilView(size_hint=(None, None), size=(szW, szH))
self.carouselT_widget = Carousel(direction='right', size_hint=(None, None),size=(szW, szH))
for img_file in os.listdir(img_path2):
if not self.image1:
self.image1 = img_file.split('.')[0].upper()
img = Image(source=os.path.join(img_path2, img_file), allow_stretch = True, keep_ratio = True, size_hint=(1,1))
self.carouselT_widget.add_widget(img)
self.level_marker.add_widget(self.carouselT_widget)
olo.add_widget(self.level_marker)
lo.add_widget(olo)
self.add_widget(lo)
Thank you