Skip to content

Commit 54238e9

Browse files
committed
direct: Add more links to manual pages in module docstrings
See panda3d/panda3d-docs#53 [skip ci]
1 parent d997be5 commit 54238e9

File tree

9 files changed

+37
-11
lines changed

9 files changed

+37
-11
lines changed

direct/src/actor/Actor.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
"""Actor module: contains the Actor class"""
1+
"""Actor module: contains the Actor class.
2+
3+
See the :ref:`models-and-actors` page in the Programming Guide to learn
4+
more about loading models and animated actors.
5+
"""
26

37
__all__ = ['Actor']
48

direct/src/actor/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@
44
the lower-level :class:`panda3d.core.Character` implementation.
55
It loads and controls an animated character and manages the animations
66
playing on it.
7+
8+
See the :ref:`models-and-actors` page in the Programming Guide to learn
9+
more about loading models and animated actors.
710
"""

direct/src/distributed/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@
22
This package contains an implementation of the Distributed Networking
33
API, a high-level networking system that automatically propagates
44
changes made on distributed objects to interested clients.
5+
6+
See the :ref:`distributed-networking` section of the Programming Guide to
7+
learn more about the distributed networking system.
58
"""

direct/src/filter/CommonFilters.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
"""
22
33
Class CommonFilters implements certain common image
4-
postprocessing filters.
4+
postprocessing filters. See the :ref:`common-image-filters` page for
5+
more information about how to use these filters.
56
67
It is not ideal that these filters are all included in a single
78
monolithic module. Unfortunately, when you want to apply two filters

direct/src/filter/FilterManager.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
The FilterManager is a convenience class that helps with the creation
44
of render-to-texture buffers for image postprocessing applications.
55
6+
See :ref:`generalized-image-filters` for information on how to use this class.
7+
68
Still need to implement:
79
810
* Make sure sort-order of buffers is correct.

direct/src/filter/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@
88
The :class:`.CommonFilters` class contains various filters that are
99
provided out of the box, whereas the :class:`.FilterManager` class
1010
is a lower-level class that allows you to set up your own filters.
11+
12+
See the :ref:`render-to-texture-and-image-postprocessing` section of the
13+
Programming Guide to learn more about image postprocessing in Panda3D.
1114
"""

direct/src/showbase/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
""" This package contains `.ShowBase`, an application framework responsible
2+
for opening a graphical display, setting up input devices and creating
3+
the scene graph. """

direct/src/stdpy/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""
22
This package contains various modules that provide a drop-in substitute
33
for some of the built-in Python modules. These substitutes make better
4-
use of Panda3D's virtual file system and threading system.
4+
use of Panda3D's :ref:`Virtual File System <virtual-file-system>` and
5+
:ref:`threading` system.
56
"""

direct/src/tkpanels/Inspector.py

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
"""Inspectors allow you to visually browse through the members of
2-
various python objects. To open an inspector, import this module, and
3-
execute inspector.inspect(anObject) I start IDLE with this command
4-
line: idle.py -c "from inspector import inspect"
5-
so that I can just type: inspect(anObject) any time."""
2+
various Python objects. To open an inspector, import this module, and
3+
execute ``inspector.inspect(anObject)``.
4+
5+
I start IDLE with this command line::
6+
7+
idle.py -c "from inspector import inspect"
8+
9+
so that I can just type: ``inspect(anObject)`` any time.
10+
11+
See :ref:`inspection-utilities` for more information.
12+
"""
613

714

815
__all__ = ['inspect', 'inspectorFor', 'Inspector', 'ModuleInspector', 'ClassInspector', 'InstanceInspector', 'FunctionInspector', 'InstanceMethodInspector', 'CodeInspector', 'ComplexInspector', 'DictionaryInspector', 'SequenceInspector', 'SliceInspector', 'InspectorWindow']
@@ -13,6 +20,9 @@
1320
### public API
1421

1522
def inspect(anObject):
23+
"""Opens up a window for visually inspecting the details of a given Python
24+
object. See :ref:`inspection-utilities`.
25+
"""
1626
inspector = inspectorFor(anObject)
1727
inspectorWindow = InspectorWindow(inspector)
1828
inspectorWindow.open()
@@ -437,7 +447,3 @@ def createPopupMenu(self, part, menuList):
437447
label = item,
438448
command = lambda p = part, f = func: f(p))
439449
return popupMenu
440-
441-
442-
443-

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy