new safe-import convention, from Josh Yelon

This commit is contained in:
David Rose 2006-09-06 17:55:30 +00:00
parent b03771c59c
commit 59b8349fe9
20 changed files with 75 additions and 8 deletions

View File

@ -1,4 +1,8 @@
"DIRECT Animation Control Panel" """DIRECT Animation Control Panel"""
__all__ = ['AnimPanel', 'ActorControl']
### SEE END OF FILE FOR EXAMPLE USEAGE ### ### SEE END OF FILE FOR EXAMPLE USEAGE ###

View File

@ -1,5 +1,7 @@
""" DIRECT Session Main panel """ """ DIRECT Session Main panel """
__all__ = ['DirectSessionPanel']
# Import Tkinter, Pmw, and the dial code # Import Tkinter, Pmw, and the dial code
from direct.showbase.TkGlobal import * from direct.showbase.TkGlobal import *
from direct.tkwidgets.AppShell import * from direct.tkwidgets.AppShell import *

View File

@ -1,4 +1,7 @@
""" Finite State Machine Inspector module """ """ Finite State Machine Inspector module """
__all__ = ['FSMInspector', 'StateInspector']
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

View File

@ -1,7 +1,11 @@
### Inspectors allow you to visually browse through the members of various python objects. """Inspectors allow you to visually browse through the members of
### To open an inspector, import this module, and execute inspector.inspect(anObject) various python objects. To open an inspector, import this module, and
### I start IDLE with this command line: idle.py -c "from inspector import inspect" execute inspector.inspect(anObject) I start IDLE with this command
### so that I can just type: inspect(anObject) any time. line: idle.py -c "from inspector import inspect"
so that I can just type: inspect(anObject) any time."""
__all__ = ['inspect', 'inspectorFor', 'Inspector', 'ModuleInspector', 'ClassInspector', 'InstanceInspector', 'FunctionInspector', 'InstanceMethodInspector', 'CodeInspector', 'ComplexInspector', 'DictionaryInspector', 'SequenceInspector', 'SliceInspector', 'InspectorWindow']
import string import string
from direct.showbase.TkGlobal import * from direct.showbase.TkGlobal import *

View File

@ -1,5 +1,7 @@
""" Mopath Recorder Panel Module """ """ Mopath Recorder Panel Module """
__all__ = ['MopathRecorder']
# Import Tkinter, Pmw, and the dial code from this directory tree. # Import Tkinter, Pmw, and the dial code from this directory tree.
from pandac.PandaModules import * from pandac.PandaModules import *
from direct.showbase.DirectObject import DirectObject from direct.showbase.DirectObject import DirectObject

View File

@ -1,3 +1,7 @@
"""Undocumented Module"""
__all__ = ['NotifyPanel']
class NotifyPanel: class NotifyPanel:
"""NotifyPanel class: this class contains methods for creating """NotifyPanel class: this class contains methods for creating

View File

@ -1,5 +1,7 @@
"""PANDA3D Particle Panel""" """PANDA3D Particle Panel"""
__all__ = ['ParticlePanel']
# Import Tkinter, Pmw, and the floater code from this directory tree. # Import Tkinter, Pmw, and the floater code from this directory tree.
from direct.tkwidgets.AppShell import * from direct.tkwidgets.AppShell import *
from direct.showbase.TkGlobal import * from direct.showbase.TkGlobal import *

View File

@ -1,5 +1,7 @@
""" DIRECT Nine DoF Manipulation Panel """ """ DIRECT Nine DoF Manipulation Panel """
__all__ = ['Placer', 'place']
# Import Tkinter, Pmw, and the dial code from this directory tree. # Import Tkinter, Pmw, and the dial code from this directory tree.
from pandac.PandaModules import * from pandac.PandaModules import *
from direct.showbase.TkGlobal import * from direct.showbase.TkGlobal import *

View File

@ -1,5 +1,10 @@
"""Undocumented Module"""
__all__ = ['TaskManagerPanel', 'TaskManagerWidget']
from direct.tkwidgets.AppShell import * from direct.tkwidgets.AppShell import *
from Tkinter import * from Tkinter import *
from direct.showbase.DirectObject import DirectObject
import Pmw import Pmw
class TaskManagerPanel(AppShell): class TaskManagerPanel(AppShell):

View File

@ -4,6 +4,9 @@ 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).
""" """
__all__ = ['AppShell']
from direct.showbase.DirectObject import DirectObject from direct.showbase.DirectObject import DirectObject
from direct.showbase.TkGlobal import * from direct.showbase.TkGlobal import *
from tkFileDialog import * from tkFileDialog import *

View File

@ -2,9 +2,12 @@
Dial Class: Velocity style controller for floating point values with Dial Class: Velocity style controller for floating point values with
a label, entry (validated), and scale a label, entry (validated), and scale
""" """
__all__ = ['Dial', 'AngleDial', 'DialWidget']
from direct.showbase.TkGlobal import * from direct.showbase.TkGlobal import *
from Tkinter import * from Tkinter import *
from Valuator import * from Valuator import Valuator, VALUATOR_MINI, VALUATOR_FULL
from direct.task import Task from direct.task import Task
import math, string, operator, Pmw import math, string, operator, Pmw
from pandac.PandaModules import ClockObject from pandac.PandaModules import ClockObject

View File

@ -1,6 +1,9 @@
""" """
EntryScale Class: Scale with a label, and a linked and validated entry EntryScale Class: Scale with a label, and a linked and validated entry
""" """
__all__ = ['EntryScale', 'EntryScaleGroup']
from direct.showbase.DirectObject import DirectObject from direct.showbase.DirectObject import DirectObject
from direct.showbase.TkGlobal import * from direct.showbase.TkGlobal import *
from Tkinter import * from Tkinter import *

View File

@ -2,9 +2,12 @@
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
""" """
__all__ = ['Floater', 'FloaterWidget', 'FloaterGroup']
from direct.showbase.TkGlobal import * from direct.showbase.TkGlobal import *
from Tkinter import * from Tkinter import *
from Valuator import * from Valuator import Valuator, VALUATOR_MINI, VALUATOR_FULL
from direct.task import Task from direct.task import Task
import math, sys, string, Pmw import math, sys, string, Pmw

View File

@ -1,6 +1,9 @@
""" """
A basic widget for showing the progress being made in a task. A basic widget for showing the progress being made in a task.
""" """
__all__ = ['ProgressBar']
from direct.showbase.TkGlobal import * from direct.showbase.TkGlobal import *
from Tkinter import * from Tkinter import *

View File

@ -1,7 +1,12 @@
"""Undocumented Module"""
__all__ = ['SceneGraphExplorer', 'SceneGraphExplorerItem', 'explore']
from direct.showbase.DirectObject import DirectObject from direct.showbase.DirectObject import DirectObject
from direct.showbase.TkGlobal import * from direct.showbase.TkGlobal import *
from Tkinter import * from Tkinter import *
from Tree import * from Tree import *
import Pmw
# changing these strings requires changing DirectSession.py SGE_ strs too! # changing these strings requires changing DirectSession.py SGE_ strs too!
DEFAULT_MENU_ITEMS = [ DEFAULT_MENU_ITEMS = [

View File

@ -2,9 +2,12 @@
Slider Class: Velocity style controller for floating point values with Slider Class: Velocity style controller for floating point values with
a label, entry (validated), and min/max slider a label, entry (validated), and min/max slider
""" """
__all__ = ['Slider', 'SliderWidget', 'rgbPanel']
from direct.showbase.TkGlobal import * from direct.showbase.TkGlobal import *
from Tkinter import * from Tkinter import *
from Valuator import * from Valuator import Valuator, rgbPanel, VALUATOR_MINI, VALUATOR_FULL
from direct.task import Task from direct.task import Task
import math, sys, string import math, sys, string
import operator, Pmw import operator, Pmw

View File

@ -1,3 +1,7 @@
"""Undocumented Module"""
__all__ = ['TreeNode', 'TreeItem']
# ADAPTED FROM IDLE TreeWidget.py # ADAPTED FROM IDLE TreeWidget.py
# XXX TO DO: # XXX TO DO:
# - popup menu # - popup menu

View File

@ -1,3 +1,7 @@
"""Undocumented Module"""
__all__ = ['Valuator', 'ValuatorGroup', 'ValuatorGroupPanel']
from direct.showbase.DirectObject import * from direct.showbase.DirectObject import *
from direct.showbase.TkGlobal import * from direct.showbase.TkGlobal import *
from Tkinter import * from Tkinter import *

View File

@ -1,3 +1,7 @@
"""Undocumented Module"""
__all__ = ['VectorEntry', 'Vector2Entry', 'Vector3Entry', 'Vector4Entry', 'ColorEntry']
from direct.showbase.TkGlobal import * from direct.showbase.TkGlobal import *
from Tkinter import * from Tkinter import *
import Valuator import Valuator

View File

@ -1,3 +1,7 @@
"""Undocumented Module"""
__all__ = ['WidgetPropertiesDialog']
from direct.showbase.TkGlobal import * from direct.showbase.TkGlobal import *
from Tkinter import * from Tkinter import *
import types, string, Pmw import types, string, Pmw