Skip to content

Commit 1f3cc3b

Browse files
committed
more fixes for import
1 parent 83e903d commit 1f3cc3b

File tree

8 files changed

+14
-11
lines changed

8 files changed

+14
-11
lines changed

direct/src/gui/DirectButton.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@
66
import DirectGuiGlobals as DGG
77
from DirectFrame import *
88

9-
# DirectButton States:
10-
BUTTON_READY_STATE = PGButton.SReady # 0
11-
BUTTON_DEPRESSED_STATE = PGButton.SDepressed # 1
12-
BUTTON_ROLLOVER_STATE = PGButton.SRollover # 2
13-
BUTTON_INACTIVE_STATE = PGButton.SInactive # 3
14-
159
class DirectButton(DirectFrame):
1610
"""
1711
DirectButton(parent) - Create a DirectGuiWidget which responds

direct/src/gui/DirectDialog.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import DirectGuiGlobals as DGG
77
from DirectFrame import *
88
from DirectButton import *
9+
import types
910

1011
def findDialog(uniqueName):
1112
"""findPanel(string uniqueName)
@@ -93,7 +94,7 @@ def __init__(self, parent = None, **kw):
9394
('text', '', None),
9495
('text_align', TextNode.ALeft, None),
9596
('text_scale', 0.06, None),
96-
('image', getDefaultDialogGeom(), None),
97+
('image', DGG.getDefaultDialogGeom(), None),
9798
('relief', None, None),
9899
('buttonTextList', [], DGG.INITOPT),
99100
('buttonGeomList', [], DGG.INITOPT),

direct/src/gui/DirectEntry.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from pandac.PandaModules import *
66
import DirectGuiGlobals as DGG
77
from DirectFrame import *
8+
from OnscreenText import OnscreenText
89
import string,types
910

1011
# DirectEntry States:

direct/src/gui/DirectFrame.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
from pandac.PandaModules import *
66
import DirectGuiGlobals as DGG
77
from DirectGuiBase import *
8-
from OnscreenImage import *
8+
from OnscreenImage import OnscreenImage
9+
from OnscreenGeom import OnscreenGeom
910
import string, types
1011

1112
class DirectFrame(DirectGuiWidget):

direct/src/gui/DirectGui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Undocumented Module"""
22

3-
import DirectGuiGlobals
3+
import DirectGuiGlobals as DGG
44
from OnscreenText import *
55
from OnscreenGeom import *
66
from OnscreenImage import *

direct/src/gui/DirectGuiGlobals.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@
9191
_OPT_VALUE = 1
9292
_OPT_FUNCTION = 2
9393

94+
# DirectButton States:
95+
BUTTON_READY_STATE = PGButton.SReady # 0
96+
BUTTON_DEPRESSED_STATE = PGButton.SDepressed # 1
97+
BUTTON_ROLLOVER_STATE = PGButton.SRollover # 2
98+
BUTTON_INACTIVE_STATE = PGButton.SInactive # 3
99+
94100
def getDefaultRolloverSound():
95101
global defaultRolloverSound
96102
if defaultRolloverSound == None:

direct/src/interval/IntervalManager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Undocumented Module"""
22

3-
__all__ = ['IntervalManager']
3+
__all__ = ['IntervalManager', 'ivalMgr']
44

55
from pandac.PandaModules import *
66
from pandac import PandaModules

direct/src/showbase/Transitions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def loadFade(self):
7272
relief = None,
7373
image = self.fadeModel,
7474
image_scale = 2 * base.getAspectRatio(),
75-
state = NORMAL,
75+
state = DGG.NORMAL,
7676
)
7777

7878
def rescaleFade():

0 commit comments

Comments
 (0)