from direct.gui.DirectScrolledFrame import DirectScrolledFrame
Contains the DirectScrolledFrame class.
See the DirectScrolledFrame page in the programming manual for a more in-depth explanation and an example of how to use this class.
- class DirectScrolledFrame(parent=None, **kw)¶
DirectScrolledFrame – a special frame that uses DirectScrollBar to implement a small window (the frameSize) into a potentially much larger virtual canvas (the canvasSize, scrolledFrame.getCanvas()).
Unless specified otherwise, scroll bars are automatically created and managed as needed, based on the relative sizes od the frameSize and the canvasSize. You can also set manageScrollBars = 0 and explicitly position and hide or show the scroll bars yourself.
- __init__(self, parent=None, **kw)¶
Returns the NodePath of the virtual canvas. Nodes parented to this canvas will show inside the scrolled area.