direct.guiΒΆ

This package contains the DirectGUI system, a set of classes responsible for drawing graphical widgets to the 2-D scene graph.

It is based on the lower-level PGui system, which is implemented in C++.

For convenience, all of the DirectGui widgets may be imported from a single module as follows:

from direct.gui.DirectGui import *

direct.gui.DirectButton

This module contains the DirectButton class.

direct.gui.DirectCheckBox

direct.gui.DirectCheckButton

A DirectCheckButton is a type of button that toggles between two states when clicked.

direct.gui.DirectDialog

This module defines various dialog windows for the DirectGUI system.

direct.gui.DirectEntry

Contains the DirectEntry class, a type of DirectGUI widget that accepts text entered using the keyboard.

direct.gui.DirectEntryScroll

direct.gui.DirectFrame

A DirectFrame is a basic DirectGUI component that acts as the base class for various other components, and can also serve as a basic container to hold other DirectGUI components.

direct.gui.DirectGui

Imports all of the DirectGUI classes.

direct.gui.DirectGuiBase

Base class for all DirectGui items.

direct.gui.DirectGuiGlobals

Global definitions used by Direct Gui Classes and handy constants that can be used during widget construction

direct.gui.DirectGuiTest

Undocumented Module

direct.gui.DirectLabel

Contains the DirectLabel class.

direct.gui.DirectOptionMenu

Implements a pop-up menu containing multiple clickable options.

direct.gui.DirectRadioButton

A DirectRadioButton is a type of button that, similar to a DirectCheckButton, has a separate indicator and can be toggled between two states.

direct.gui.DirectScrollBar

Defines the DirectScrollBar class.

direct.gui.DirectScrolledFrame

Contains the DirectScrolledFrame class.

direct.gui.DirectScrolledList

Contains the DirectScrolledList class.

direct.gui.DirectSlider

Defines the DirectSlider class.

direct.gui.DirectWaitBar

Contains the DirectWaitBar class, a progress bar widget.

direct.gui.OnscreenGeom

OnscreenGeom module: contains the OnscreenGeom class

direct.gui.OnscreenImage

OnscreenImage module: contains the OnscreenImage class.

direct.gui.OnscreenText

OnscreenText module: contains the OnscreenText class.