# direct.gui.DirectScrolledFrame¶

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.

Inheritance diagram

class DirectScrolledFrame(parent=None, **kw)[source]

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)[source]
commandFunc(self)[source]
destroy(self)[source]
getCanvas(self)[source]

Returns the NodePath of the virtual canvas. Nodes parented to this canvas will show inside the scrolled area.

setAutoHideScrollBars(self)[source]
setCanvasSize(self)[source]
setManageScrollBars(self)[source]
setScrollBarWidth(self)[source]