Skip to main content

Console for panda3d application written in python

Project description

PyPI version

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pconsole-0.4.1.tar.gz (359.3 kB view details)

Uploaded Source

File details

Details for the file pconsole-0.4.1.tar.gz.

File metadata

  • Download URL: pconsole-0.4.1.tar.gz
  • Upload date:
  • Size: 359.3 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pconsole-0.4.1.tar.gz
Algorithm Hash digest
SHA256 1119d958bca5374f19d1c2a62b16bc2c3f4199b0e8c25955b7b8b7fd70b3c09a
MD5 28367886fca41da35058e54d6f2d1eaf
BLAKE2b-256 abc39e1d5f24bf77682a3d6d2c4c7d85e8fab112c2995413d49e92d2e84991d9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page