panda3d console
a tiny and easy-to-use runtime console for panda3d-powered apps
Installation
pip install pconsole
Initialize console
import pconsole
commandDic = {"func1_string":func1, # "associated string" : function name
"func2_string":func2
}
key = 't' # this key will toggle the console, by default, pconsole will use 'f1'
myConsole = pconsole.Console()
myConsole.create(commandDic, event = key)
# command line is now up and running
default commands
-
help: lists all available commands
-
usage: specific help
additional features
use the 'app' argument when creating the console in order to be able to access attributes and variables from your main class in the python interpreter:
myConsole.create(commandDic, event = key, app = self) # the self keyword will be refered to as 'main' in the interpreter
Release files for pconsole 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pconsole-0.4.1.tar.gz | 359.3 kB | Details |
Release files / pconsole-0.4.1.tar.gz
| Download URL | pconsole-0.4.1.tar.gz |
|---|---|
| Size | 359.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1119d958bca5374f19d1c2a62b16bc2c3f4199b0e8c25955b7b8b7fd70b3c09a
|
|
BLAKE2b-256 checksum How to use checksums |
abc39e1d5f24bf77682a3d6d2c4c7d85e8fab112c2995413d49e92d2e84991d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0
|