A
A
Anastasia Taube2020-04-07 14:04:06
Python
Anastasia Taube, 2020-04-07 14:04:06

How to set menu opening from bottom to top?

I have 2 menus. One is at the top, the other is at the bottom.

The top opens quite correctly: from top to bottom. It looks like this:

spoiler
5e8c54de562e2556085997.png
Код kv (вдруг нужен?):
AppMenu:
            top: root.height
            cancel_handler_widget: main_layout

            AppMenuTextItem:
            	text: "Импорт"
            	ContextMenu:
            		ContextMenuTextItem:
            			text: "Открыть файл"
            		ContextMenuTextItem:
            			text: "Подключиться к IP-камере"
            AppMenuTextItem:
            	text: "Сохранить результаты"


And with the lower already problems. The following happens to him:
spoiler
5e8c5b7b01a94588940999.png
5e8c5b8fcc4fa643643489.png
Код kv:
AppMenu:
            			top: root.height
            			cancel_handler_widget: main_layout
            			AppMenuTextItem:
            				text: "Воспроизвести"
            			AppMenuTextItem:
            				text: "Пауза"
            			AppMenuTextItem:
            				text: "Стоп"
            			AppMenuTextItem:
            				text: "Настройки "
            				ContextMenu:
            					ContextMenuTextItem:
            						text: "Изменить зону распознования"
            					ContextMenuTextItem:
            						text: "Полосы"
            						ContextMenu:
            							ContextMenuTextItem:
            								text: "Добавить"
            							ContextMenuTextItem:
            								text: "Удалить"

And I understand that it expands down because it is supposed to expand the menu, but at the same time I am more than sure that there is a way to make it expand up. But already what pages of both Google and Yandex did not show how. Maybe I was just looking in the wrong place.
That's why I'm looking for help here.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question