mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
changed panda modules import
This commit is contained in:
parent
9e51cf2f8a
commit
b4f8764266
@ -1,4 +1,4 @@
|
|||||||
from direct.showbase.DirectObject import *
|
|
||||||
from ClusterClient import *
|
from ClusterClient import *
|
||||||
import string
|
import string
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
""" Class used to create and control vrpn devices """
|
""" Class used to create and control vrpn devices """
|
||||||
|
|
||||||
from direct.showbase.DirectObject import *
|
from direct.showbase.DirectObject import DirectObject
|
||||||
from pandac.PandaModules import *
|
from pandac.PandaModules import *
|
||||||
|
|
||||||
ANALOG_MIN = -0.95
|
ANALOG_MIN = -0.95
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
from pandac.PandaModules import *
|
from pandac.PandaModules import *
|
||||||
from direct.showbase.DirectObject import *
|
|
||||||
from DirectGlobals import *
|
from DirectGlobals import *
|
||||||
from DirectUtil import *
|
from DirectUtil import *
|
||||||
import math
|
import math
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
from direct.showbase.DirectObject import *
|
|
||||||
|
from pandac.PandaModules import *
|
||||||
|
from direct.showbase.DirectObject import DirectObject
|
||||||
from DirectUtil import *
|
from DirectUtil import *
|
||||||
from DirectGeometry import *
|
from DirectGeometry import *
|
||||||
|
|
||||||
class DirectGrid(NodePath,DirectObject):
|
class DirectGrid(NodePath, DirectObject):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
# Initialize superclass
|
# Initialize superclass
|
||||||
NodePath.__init__(self)
|
NodePath.__init__(self)
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
from direct.showbase.DirectObject import *
|
|
||||||
|
from pandac.PandaModules import *
|
||||||
from string import lower
|
from string import lower
|
||||||
|
|
||||||
class DirectLight(NodePath):
|
class DirectLight(NodePath):
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
from direct.showbase.DirectObject import *
|
|
||||||
from DirectGlobals import *
|
from DirectGlobals import *
|
||||||
|
|
||||||
# Routines to adjust values
|
# Routines to adjust values
|
||||||
@ -13,7 +13,9 @@ def CLAMP(val, minVal, maxVal):
|
|||||||
|
|
||||||
# Create a tk compatible color string
|
# Create a tk compatible color string
|
||||||
def getTkColorString(color):
|
def getTkColorString(color):
|
||||||
""" Print out a Tk compatible version of a color string """
|
"""
|
||||||
|
Print out a Tk compatible version of a color string
|
||||||
|
"""
|
||||||
def toHex(intVal):
|
def toHex(intVal):
|
||||||
val = int(round(intVal))
|
val = int(round(intVal))
|
||||||
if val < 16:
|
if val < 16:
|
||||||
@ -27,7 +29,9 @@ def getTkColorString(color):
|
|||||||
|
|
||||||
## Background Color ##
|
## Background Color ##
|
||||||
def lerpBackgroundColor(r,g,b,duration):
|
def lerpBackgroundColor(r,g,b,duration):
|
||||||
""" Function to lerp background color to a new value """
|
"""
|
||||||
|
Function to lerp background color to a new value
|
||||||
|
"""
|
||||||
def lerpColor(state):
|
def lerpColor(state):
|
||||||
dt = globalClock.getDt()
|
dt = globalClock.getDt()
|
||||||
state.time += dt
|
state.time += dt
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
"""DistributedObjectGlobal module: contains the DistributedObjectGlobal class"""
|
"""DistributedObjectGlobal module: contains the DistributedObjectGlobal class"""
|
||||||
|
|
||||||
from direct.showbase.DirectObject import *
|
|
||||||
from direct.directnotify.DirectNotifyGlobal import directNotify
|
from direct.directnotify.DirectNotifyGlobal import directNotify
|
||||||
from direct.distributed.DistributedObject import DistributedObject
|
from direct.distributed.DistributedObject import DistributedObject
|
||||||
|
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
"""OnscreenGeom module: contains the OnscreenGeom class"""
|
"""OnscreenGeom module: contains the OnscreenGeom class"""
|
||||||
|
|
||||||
|
import string
|
||||||
|
import types
|
||||||
from pandac.PandaModules import *
|
from pandac.PandaModules import *
|
||||||
from direct.showbase.DirectObject import DirectObject
|
from direct.showbase.DirectObject import DirectObject
|
||||||
import types
|
|
||||||
|
|
||||||
class OnscreenGeom(DirectObject, NodePath):
|
class OnscreenGeom(DirectObject, NodePath):
|
||||||
def __init__(self, geom = None,
|
def __init__(self, geom = None,
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
"""ProjectileInterval module: contains the ProjectileInterval class"""
|
"""ProjectileInterval module: contains the ProjectileInterval class"""
|
||||||
|
|
||||||
from direct.showbase.DirectObject import *
|
|
||||||
from pandac.PandaModules import *
|
from pandac.PandaModules import *
|
||||||
from Interval import Interval
|
from Interval import Interval
|
||||||
from direct.showbase.PythonUtil import lerp
|
from direct.showbase.PythonUtil import lerp
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
|
|
||||||
|
from pandac.PandaModules import *
|
||||||
from direct.directbase.DirectStart import *
|
from direct.directbase.DirectStart import *
|
||||||
from direct.showbase.DirectObject import *
|
from direct.showbase.DirectObject import DirectObject
|
||||||
from PieMenu import *
|
from PieMenu import *
|
||||||
from direct.gui.DirectGuiGlobals import *
|
from direct.gui.DirectGuiGlobals import *
|
||||||
from direct.showbase.TkGlobal import *
|
from direct.showbase.TkGlobal import *
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
from direct.showbase.DirectObject import *
|
|
||||||
|
from pandac.PandaModules import *
|
||||||
|
from direct.showbase.DirectObject import DirectObject
|
||||||
from direct.directtools.DirectGeometry import *
|
from direct.directtools.DirectGeometry import *
|
||||||
from direct.task import Task
|
from direct.task import Task
|
||||||
|
|
||||||
@ -21,7 +23,7 @@ class PieMenu(NodePath, DirectObject):
|
|||||||
if self.numItems == 0:
|
if self.numItems == 0:
|
||||||
self.degreesPerItem = 0.0
|
self.degreesPerItem = 0.0
|
||||||
else:
|
else:
|
||||||
self.degreesPerItem = 360.0/self.numItems
|
self.degreesPerItem = 360.0/self.numItems
|
||||||
self.itemOffset = self.degreesPerItem / 2.0
|
self.itemOffset = self.degreesPerItem / 2.0
|
||||||
self.sfx = self.visibleMenu.getSx()
|
self.sfx = self.visibleMenu.getSx()
|
||||||
self.sfz = self.visibleMenu.getSz()
|
self.sfz = self.visibleMenu.getSz()
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
""" Showutil Effects module: contains code for useful showcode effects. """
|
""" Showutil Effects module: contains code for useful showcode effects. """
|
||||||
from direct.showbase.DirectObject import *
|
|
||||||
from pandac.PandaModules import *
|
from pandac.PandaModules import *
|
||||||
from direct.interval.IntervalGlobal import *
|
from direct.interval.IntervalGlobal import *
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
""" DIRECT Session Main panel """
|
""" DIRECT Session Main panel """
|
||||||
|
|
||||||
# Import Tkinter, Pmw, and the dial code
|
# Import Tkinter, Pmw, and the dial code
|
||||||
from direct.showbase.DirectObject import *
|
|
||||||
from direct.showbase.TkGlobal import *
|
from direct.showbase.TkGlobal import *
|
||||||
from direct.tkwidgets.AppShell import *
|
from direct.tkwidgets.AppShell import *
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
""" Finite State Machine Inspector module """
|
""" Finite State Machine Inspector module """
|
||||||
from direct.showbase.DirectObject import *
|
|
||||||
from direct.tkwidgets.AppShell import *
|
from direct.tkwidgets.AppShell import *
|
||||||
from direct.showbase.TkGlobal import *
|
from direct.showbase.TkGlobal import *
|
||||||
from tkSimpleDialog import askstring
|
from tkSimpleDialog import askstring
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
""" Mopath Recorder Panel Module """
|
""" Mopath Recorder Panel Module """
|
||||||
|
|
||||||
# Import Tkinter, Pmw, and the dial code from this directory tree.
|
# Import Tkinter, Pmw, and the dial code from this directory tree.
|
||||||
from direct.showbase.DirectObject import *
|
from pandac.PandaModules import *
|
||||||
|
from direct.showbase.DirectObject import DirectObject
|
||||||
from direct.showbase.TkGlobal import *
|
from direct.showbase.TkGlobal import *
|
||||||
from direct.tkwidgets.AppShell import *
|
from direct.tkwidgets.AppShell import *
|
||||||
from direct.directtools.DirectGlobals import *
|
from direct.directtools.DirectGlobals import *
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
""" DIRECT Nine DoF Manipulation Panel """
|
""" DIRECT Nine DoF Manipulation Panel """
|
||||||
|
|
||||||
# Import Tkinter, Pmw, and the dial code from this directory tree.
|
# Import Tkinter, Pmw, and the dial code from this directory tree.
|
||||||
from direct.showbase.DirectObject import *
|
from pandac.PandaModules import *
|
||||||
from direct.showbase.TkGlobal import *
|
from direct.showbase.TkGlobal import *
|
||||||
from direct.tkwidgets.AppShell import *
|
from direct.tkwidgets.AppShell import *
|
||||||
from direct.tkwidgets import Dial
|
from direct.tkwidgets import Dial
|
||||||
|
@ -4,7 +4,7 @@ This is an adaption of AppShell.py found in Python and Tkinter Programming
|
|||||||
by John E. Grayson which is a streamlined adaptation of GuiAppD.py, originally
|
by John E. Grayson which is a streamlined adaptation of GuiAppD.py, originally
|
||||||
created by Doug Hellmann (doughellmann@mindspring.com).
|
created by Doug Hellmann (doughellmann@mindspring.com).
|
||||||
"""
|
"""
|
||||||
from direct.showbase.DirectObject import *
|
from direct.showbase.DirectObject import DirectObject
|
||||||
from direct.showbase.TkGlobal import *
|
from direct.showbase.TkGlobal import *
|
||||||
from tkFileDialog import *
|
from tkFileDialog import *
|
||||||
import Dial
|
import Dial
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
"""
|
"""
|
||||||
EntryScale Class: Scale with a label, and a linked and validated entry
|
EntryScale Class: Scale with a label, and a linked and validated entry
|
||||||
"""
|
"""
|
||||||
from direct.showbase.DirectObject import *
|
from direct.showbase.DirectObject import DirectObject
|
||||||
from direct.showbase.TkGlobal import *
|
from direct.showbase.TkGlobal import *
|
||||||
import string
|
import string
|
||||||
import tkColorChooser
|
import tkColorChooser
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
Floater Class: Velocity style controller for floating point values with
|
Floater Class: Velocity style controller for floating point values with
|
||||||
a label, entry (validated), and scale
|
a label, entry (validated), and scale
|
||||||
"""
|
"""
|
||||||
from direct.showbase.DirectObject import *
|
|
||||||
from direct.showbase.TkGlobal import *
|
from direct.showbase.TkGlobal import *
|
||||||
from Valuator import *
|
from Valuator import *
|
||||||
from direct.task import Task
|
from direct.task import Task
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
from direct.showbase.DirectObject import *
|
from direct.showbase.DirectObject import DirectObject
|
||||||
from direct.showbase.TkGlobal import *
|
from direct.showbase.TkGlobal import *
|
||||||
from Tree import *
|
from Tree import *
|
||||||
|
|
||||||
|
@ -19,7 +19,6 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
import string
|
import string
|
||||||
from direct.showbase.TkGlobal import *
|
from direct.showbase.TkGlobal import *
|
||||||
from direct.showbase.DirectObject import *
|
|
||||||
|
|
||||||
# Initialize icon directory
|
# Initialize icon directory
|
||||||
ICONDIR = getModelPath().findFile(Filename('icons')).toOsSpecific()
|
ICONDIR = getModelPath().findFile(Filename('icons')).toOsSpecific()
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
# (If we do change original directools, it will force user has to install the latest version of OUR Panda)
|
# (If we do change original directools, it will force user has to install the latest version of OUR Panda)
|
||||||
#
|
#
|
||||||
#################################################################
|
#################################################################
|
||||||
from direct.showbase.DirectObject import *
|
from direct.showbase.DirectObject import DirectObject
|
||||||
from direct.directtools.DirectUtil import *
|
from direct.directtools.DirectUtil import *
|
||||||
from seGeometry import *
|
from seGeometry import *
|
||||||
from direct.directtools.DirectGlobals import *
|
from direct.directtools.DirectGlobals import *
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
from pandac.PandaModules import *
|
from pandac.PandaModules import *
|
||||||
from direct.showbase.DirectObject import *
|
from direct.showbase.DirectObject import DirectObject
|
||||||
from direct.showbase.PhysicsManagerGlobal import *
|
from direct.showbase.PhysicsManagerGlobal import *
|
||||||
#Manakel 2/12/2005: replace from pandac import by from pandac.PandaModules import
|
#Manakel 2/12/2005: replace from pandac import by from pandac.PandaModules import
|
||||||
from pandac.PandaModules import ForceNode
|
from pandac.PandaModules import ForceNode
|
||||||
|
@ -13,7 +13,6 @@
|
|||||||
#################################################################
|
#################################################################
|
||||||
|
|
||||||
from pandac.PandaModules import *
|
from pandac.PandaModules import *
|
||||||
from direct.showbase.DirectObject import *
|
|
||||||
from direct.directtools.DirectGlobals import *
|
from direct.directtools.DirectGlobals import *
|
||||||
from direct.directtools.DirectUtil import *
|
from direct.directtools.DirectUtil import *
|
||||||
import math
|
import math
|
||||||
|
Loading…
x
Reference in New Issue
Block a user