mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 11:28:17 -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
|
import DirectGuiGlobals as DGG
|
||||||
from DirectFrame import *
|
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):
|
class DirectButton(DirectFrame):
|
||||||
"""
|
"""
|
||||||
DirectButton(parent) - Create a DirectGuiWidget which responds
|
DirectButton(parent) - Create a DirectGuiWidget which responds
|
||||||
|
@ -6,6 +6,7 @@ from pandac.PandaModules import *
|
|||||||
import DirectGuiGlobals as DGG
|
import DirectGuiGlobals as DGG
|
||||||
from DirectFrame import *
|
from DirectFrame import *
|
||||||
from DirectButton import *
|
from DirectButton import *
|
||||||
|
import types
|
||||||
|
|
||||||
def findDialog(uniqueName):
|
def findDialog(uniqueName):
|
||||||
"""findPanel(string uniqueName)
|
"""findPanel(string uniqueName)
|
||||||
@ -93,7 +94,7 @@ class DirectDialog(DirectFrame):
|
|||||||
('text', '', None),
|
('text', '', None),
|
||||||
('text_align', TextNode.ALeft, None),
|
('text_align', TextNode.ALeft, None),
|
||||||
('text_scale', 0.06, None),
|
('text_scale', 0.06, None),
|
||||||
('image', getDefaultDialogGeom(), None),
|
('image', DGG.getDefaultDialogGeom(), None),
|
||||||
('relief', None, None),
|
('relief', None, None),
|
||||||
('buttonTextList', [], DGG.INITOPT),
|
('buttonTextList', [], DGG.INITOPT),
|
||||||
('buttonGeomList', [], DGG.INITOPT),
|
('buttonGeomList', [], DGG.INITOPT),
|
||||||
|
@ -5,6 +5,7 @@ __all__ = ['DirectEntry']
|
|||||||
from pandac.PandaModules import *
|
from pandac.PandaModules import *
|
||||||
import DirectGuiGlobals as DGG
|
import DirectGuiGlobals as DGG
|
||||||
from DirectFrame import *
|
from DirectFrame import *
|
||||||
|
from OnscreenText import OnscreenText
|
||||||
import string,types
|
import string,types
|
||||||
|
|
||||||
# DirectEntry States:
|
# DirectEntry States:
|
||||||
|
@ -5,7 +5,8 @@ __all__ = ['DirectFrame']
|
|||||||
from pandac.PandaModules import *
|
from pandac.PandaModules import *
|
||||||
import DirectGuiGlobals as DGG
|
import DirectGuiGlobals as DGG
|
||||||
from DirectGuiBase import *
|
from DirectGuiBase import *
|
||||||
from OnscreenImage import *
|
from OnscreenImage import OnscreenImage
|
||||||
|
from OnscreenGeom import OnscreenGeom
|
||||||
import string, types
|
import string, types
|
||||||
|
|
||||||
class DirectFrame(DirectGuiWidget):
|
class DirectFrame(DirectGuiWidget):
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
"""Undocumented Module"""
|
"""Undocumented Module"""
|
||||||
|
|
||||||
import DirectGuiGlobals
|
import DirectGuiGlobals as DGG
|
||||||
from OnscreenText import *
|
from OnscreenText import *
|
||||||
from OnscreenGeom import *
|
from OnscreenGeom import *
|
||||||
from OnscreenImage import *
|
from OnscreenImage import *
|
||||||
|
@ -91,6 +91,12 @@ _OPT_DEFAULT = 0
|
|||||||
_OPT_VALUE = 1
|
_OPT_VALUE = 1
|
||||||
_OPT_FUNCTION = 2
|
_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():
|
def getDefaultRolloverSound():
|
||||||
global defaultRolloverSound
|
global defaultRolloverSound
|
||||||
if defaultRolloverSound == None:
|
if defaultRolloverSound == None:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
"""Undocumented Module"""
|
"""Undocumented Module"""
|
||||||
|
|
||||||
__all__ = ['IntervalManager']
|
__all__ = ['IntervalManager', 'ivalMgr']
|
||||||
|
|
||||||
from pandac.PandaModules import *
|
from pandac.PandaModules import *
|
||||||
from pandac import PandaModules
|
from pandac import PandaModules
|
||||||
|
@ -72,7 +72,7 @@ class Transitions:
|
|||||||
relief = None,
|
relief = None,
|
||||||
image = self.fadeModel,
|
image = self.fadeModel,
|
||||||
image_scale = 2 * base.getAspectRatio(),
|
image_scale = 2 * base.getAspectRatio(),
|
||||||
state = NORMAL,
|
state = DGG.NORMAL,
|
||||||
)
|
)
|
||||||
|
|
||||||
def rescaleFade():
|
def rescaleFade():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user