tobspr / LUI

Lightweight User Interface for Panda3D
MIT License
84 stars 24 forks source link

LUITabbedFrame does not work #25

Open bkeys opened 7 years ago

bkeys commented 7 years ago

If you try to use it as such

tabs = LUITabbedFrame(parent=vlayout.cell(), height=100, width=200)

Then you will get the following warning

:lui:luiBaseLayout(error): Cannot call add() with an object which already has a parent! Tried to add LUIHorizontalLayout to LUIVerticalLayout, current parent is LUILayoutCell
:lui(warning): Overriding event handler for 'expose', target = LUITabbedFrame
:lui(warning): Overriding event handler for 'unexpose', target = LUITabbedFrame

And the event handling for the tabbed frame no longer works. I cannot switch tabs

tobspr commented 7 years ago

I will have a look, although I can not promise when this will happen since I'm quite busy right now

tobspr commented 7 years ago

Can you try going to Builtin/LUITabbedFrame.py and comment line 23?

tobspr commented 7 years ago

For the last two warnings, try commenting line 34 and 35