question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Submenu with more elements than parent still visible after return

See original GitHub issue

Submenu is still visible after return if parent has fewer options.

cursesmenu

Example code:

from cursesmenu import *
from cursesmenu.items import *
menu = CursesMenu("Title", "Subtitle")
selection_menu = SelectionMenu([ "item{}".format(i) for i in range(20) ])
submenu_item = SubmenuItem("Submenu item", selection_menu, menu)
menu.append_item(submenu_item)
menu.show()

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
melancholiaquecommented, Oct 18, 2019

image it surely VERY dirty solution, still works though root is SelectionMenu

0reactions
skandabhairavacommented, Feb 2, 2022

Btw, im not exactly using a submenu, im using the SelectionMenu.get_selection() to generate a small menu, and then based on the result, im directly calling another function which contains a SelectionMenu.get_selection() If that helps! Thanks a lot! @pmbarrett314

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to add class to parent when child is visible?
I am initially setting the sub menu to hidden by using $("lower-menu").hide(). Then when "parent-li" is clicked, I use slideToggle to open and ......
Read more >
ui.submenu, API Reference Webix Docs - Documentation
This page contains ui.submenu documentation to help in learning the library. ... getNextId, returns the ID of an item that is after the...
Read more >
Click submenu which is dynamicly visible in Selenium ...
I need to click the 4th submenu, but it can only be visible when 1st menu is clicked on and mouse over the...
Read more >
Targeting Menu Elements with Submenus in a Navigation Bar
Most likely it will be two elements: the anchor and the <ul> , though one can tweak this technique to work for any...
Read more >
Diagnosis: z-index (submenu hidden behind content)
When HTML elements overlap on the page, they have to be layered – one element ... and the z-axis is the third dimension/depth,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found