我有一些小部件内floatlayout:强制FloatLayout为正方形?
fl = FloatLayout(size=(600,600),
pos_hint=({'center_x': .5, 'center_y': .5}))
pos1 = ImgButton(source='zulgrey.png',
size_hint=(0.2,0.2),
pos_hint=({'center_x': 0, 'center_y': .43}))
pos2 = ImgButton(source='zulgrey.png',
size_hint=(0.2,0.2),
pos_hint=({'center_x': 0.5, 'center_y': 0.93}))
pos3 = ImgButton(source='zulgrey.png',
size_hint=(0.2,0.2),
pos_hint=({'center_x': 1, 'center_y': .43}))
pos4 = ImgButton(source='zulgrey.png',
size_hint=(0.2,0.2),
pos_hint=({'center_x': 0.5, 'center_y': .43}))
fl.add_widget(cove)
fl.add_widget(pos1)
fl.add_widget(pos2)
fl.add_widget(pos3)
fl.add_widget(pos4)
然而,当我调整窗口小部件的位置,从那里我预期他们能够移动。有没有一种方法可以强制floatlay在调整大小时具有固定的纵横比?