mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
more fixes for import
This commit is contained in:
parent
83e903d269
commit
1f3cc3b671
@ -6,12 +6,6 @@ from pandac.PandaModules import *
|
||||
import DirectGuiGlobals as DGG
|
||||
from DirectFrame import *
|
||||
|
||||
# DirectButton States:
|
||||
BUTTON_READY_STATE = PGButton.SReady # 0
|
||||
BUTTON_DEPRESSED_STATE = PGButton.SDepressed # 1
|
||||
BUTTON_ROLLOVER_STATE = PGButton.SRollover # 2
|
||||
BUTTON_INACTIVE_STATE = PGButton.SInactive # 3
|
||||
|
||||
class DirectButton(DirectFrame):
|
||||
"""
|
||||
DirectButton(parent) - Create a DirectGuiWidget which responds
|
||||
|
@ -6,6 +6,7 @@ from pandac.PandaModules import *
|
||||
import DirectGuiGlobals as DGG
|
||||
from DirectFrame import *
|
||||
from DirectButton import *
|
||||
import types
|
||||
|
||||
def findDialog(uniqueName):
|
||||
"""findPanel(string uniqueName)
|
||||
@ -93,7 +94,7 @@ class DirectDialog(DirectFrame):
|
||||
('text', '', None),
|
||||
('text_align', TextNode.ALeft, None),
|
||||
('text_scale', 0.06, None),
|
||||
('image', getDefaultDialogGeom(), None),
|
||||
('image', DGG.getDefaultDialogGeom(), None),
|
||||
('relief', None, None),
|
||||
('buttonTextList', [], DGG.INITOPT),
|
||||
('buttonGeomList', [], DGG.INITOPT),
|
||||
|
@ -5,6 +5,7 @@ __all__ = ['DirectEntry']
|
||||
from pandac.PandaModules import *
|
||||
import DirectGuiGlobals as DGG
|
||||
from DirectFrame import *
|
||||
from OnscreenText import OnscreenText
|
||||
import string,types
|
||||
|
||||
# DirectEntry States:
|
||||
|
@ -5,7 +5,8 @@ __all__ = ['DirectFrame']
|
||||
from pandac.PandaModules import *
|
||||
import DirectGuiGlobals as DGG
|
||||
from DirectGuiBase import *
|
||||
from OnscreenImage import *
|
||||
from OnscreenImage import OnscreenImage
|
||||
from OnscreenGeom import OnscreenGeom
|
||||
import string, types
|
||||
|
||||
class DirectFrame(DirectGuiWidget):
|
||||
|
@ -1,6 +1,6 @@
|
||||
"""Undocumented Module"""
|
||||
|
||||
import DirectGuiGlobals
|
||||
import DirectGuiGlobals as DGG
|
||||
from OnscreenText import *
|
||||
from OnscreenGeom import *
|
||||
from OnscreenImage import *
|
||||
|
@ -91,6 +91,12 @@ _OPT_DEFAULT = 0
|
||||
_OPT_VALUE = 1
|
||||
_OPT_FUNCTION = 2
|
||||
|
||||
# DirectButton States:
|
||||
BUTTON_READY_STATE = PGButton.SReady # 0
|
||||
BUTTON_DEPRESSED_STATE = PGButton.SDepressed # 1
|
||||
BUTTON_ROLLOVER_STATE = PGButton.SRollover # 2
|
||||
BUTTON_INACTIVE_STATE = PGButton.SInactive # 3
|
||||
|
||||
def getDefaultRolloverSound():
|
||||
global defaultRolloverSound
|
||||
if defaultRolloverSound == None:
|
||||
|
@ -1,6 +1,6 @@
|
||||
"""Undocumented Module"""
|
||||
|
||||
__all__ = ['IntervalManager']
|
||||
__all__ = ['IntervalManager', 'ivalMgr']
|
||||
|
||||
from pandac.PandaModules import *
|
||||
from pandac import PandaModules
|
||||
|
@ -72,7 +72,7 @@ class Transitions:
|
||||
relief = None,
|
||||
image = self.fadeModel,
|
||||
image_scale = 2 * base.getAspectRatio(),
|
||||
state = NORMAL,
|
||||
state = DGG.NORMAL,
|
||||
)
|
||||
|
||||
def rescaleFade():
|
||||
|
Loading…
x
Reference in New Issue
Block a user