What is the correct method to display a large popup menu?
Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Riding Sky Waves v001
--
Chapters
00:00 Question
02:33 Accepted answer (Score 1)
02:58 Answer 2 (Score 2)
03:30 Thank you
--
Full question
https://stackoverflow.com/questions/1442...
Accepted answer links:
[GtkComboBoxText]: http://developer.gnome.org/gtk3/stable/G...
[GtkTreeView]: http://developer.gnome.org/gtk3/stable/G...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #gtk #gtk3 #pygobject
#avk47
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Riding Sky Waves v001
--
Chapters
00:00 Question
02:33 Accepted answer (Score 1)
02:58 Answer 2 (Score 2)
03:30 Thank you
--
Full question
https://stackoverflow.com/questions/1442...
Accepted answer links:
[GtkComboBoxText]: http://developer.gnome.org/gtk3/stable/G...
[GtkTreeView]: http://developer.gnome.org/gtk3/stable/G...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #gtk #gtk3 #pygobject
#avk47
ANSWER 1
Score 2
I browsed around a little in the documentation, and instead of using popup.append(new_menu_item) you could use popup.attach(new_menu_item, left, right, top, bottom) to put your menu items in a grid instead of one long line.
But it seems like you would be better off opening a window with a scrollable list, though!
ACCEPTED ANSWER
Score 1
Use a GtkComboBoxText. But as ptomato said, this kind of presentation isn't adapted to lists of a huge amount of values. Either reduce the number of values to show, or use a GtkTreeView, which will have a scroll bar and won't need an initial click to show values.