I have been attempting to implement some extended widgets which have some specialized behavior. When I extend one of the DirectGUI classes and try to add it to the screen, it is not visible. However, any children of that element (non-extended) are visible. I thought this might be sufficient to make the GUI element show up on screen:
from direct.gui.DirectGui import *
def init(self, *args, **kargs):
DirectFrame.init(self, *args, **kargs)
however it does not. I am using panda3d version 1.6.2. Any ideas on what I could do to work around this problem?
Also note that identical init params on a DirectFrame object do make the frame show up correctly.