parent
8775221b5f
commit
86fc0f9988
@ -43,6 +43,14 @@ class MenuPanel(ScreenPanel):
|
|||||||
if not self.evaluate_enable(item[key]['enable']):
|
if not self.evaluate_enable(item[key]['enable']):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if columns == 4:
|
||||||
|
if length <= 4:
|
||||||
|
# Arrange 2 x 2
|
||||||
|
columns = 2
|
||||||
|
elif length > 4 and length <= 6:
|
||||||
|
# Arrange 3 x 2
|
||||||
|
columns = 3
|
||||||
|
|
||||||
col = i % columns
|
col = i % columns
|
||||||
row = int(i/columns)
|
row = int(i/columns)
|
||||||
width = 1
|
width = 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user