Skip to main content

Panda3D-Kivy

A Panda3D add-on for Kivy integration.

The aim is to make the integration of Kivy apps into a Panda3D application almost transparent. Potential uses include creating on-screen GUI, or even RTT 3D UI's.

Usage:

First, import panda3d_kivy.app.App - make sure you do this before importing any Kivy-related stuff:

from panda3d_kivy.app import App

Then, as usual in Kivy, create a subclass of this App, and use build() or the KV autoloading system to populate your widget tree:

from kivy.uix.button import Button

class Example(App):
    def build(self):
        return Button(text='Hello, world!')

You can then instantiate and run this app inside the __init__ of your Panda ShowBase, after running ShowBase.__init__(self). You may want to create a display region for your kivy app, sized according to your needs, otherwise panda3d_kivy will automatically create one for you that will occupy the entire window. You must then pass your ShowBase as argument to the Kivy app instantiation, as well as your display region if applicable, and finally call app.run() as you normally would:

from direct.showbase.ShowBase import ShowBase

class PandaApp(ShowBase):
    def __init__(self):
        ShowBase.__init__(self)

        self.kivy_app = kivy_app = Example(self)
        kivy_app.run()

        # The rest of your ShowBase code here


app = PandaApp()
app.run()

Voilà! You should have a working Kivy UI in your Panda application. Have fun!

Metadata

Release files for panda3d-kivy 0.5.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for panda3d-kivy 0.5.4
File Size Uploaded
panda3d_kivy-0.5.4.tar.gz 213.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for panda3d-kivy 0.5.4
File Interpreter ABI Platform
panda3d_kivy-0.5.4-py3-none-any.whl Python 3 none any Details

Total release size: 598.3 kB

Release files / panda3d_kivy-0.5.4.tar.gz

Download URL panda3d_kivy-0.5.4.tar.gz
Size 213.1 kB
Tags Source
SHA-256 checksum
How to use checksums
479e35dabf5db9e4e1d079bd2e6be6bd8751efc38fdff19ff4d38594f6431f9d
BLAKE2b-256 checksum
How to use checksums
9f80b9203c6412c5a9bbd940d18a5ea65d29894d85cb0334874ea73ada8c95f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Release files / panda3d_kivy-0.5.4-py3-none-any.whl

Download URL panda3d_kivy-0.5.4-py3-none-any.whl
Size 385.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd57b1a5adae82e644aa26f15ab141b09d58aa0d666a7a27c10932dc4e5faf90
BLAKE2b-256 checksum
How to use checksums
0e89221707bc165e289c1289331c02664f5ea99dd78a334f0bfa74f8958cb326
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Release history Release notifications | RSS feed

This release

0.5.4 This release

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page