There is also this code to generate menu bar and popup menu (that’s what I’m using in my app) : Popup Menu & Drop-down Menu Bar
I updated it to be compatible with Panda3D 1.10, cosmonium/third-party/pandamenu at develop · cosmonium/cosmonium · GitHub
I should move it to its own repository (or switch to Wolf’s implementation )