Skip to content

Commit

Permalink
Comply with IETF recommentations regarding oppressive language
Browse files Browse the repository at this point in the history
See https://tools.ietf.org/id/draft-knodel-terminology-00.html for
reference.
See kivy/kivy#6937 for the technical
implications at play here.
  • Loading branch information
Cheaterman committed Oct 30, 2020
1 parent c4acfc3 commit 46c0539
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion panda3d_kivy/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# Sets kivy.exit_on_escape to 0 (a more sensible default for Panda3D apps)
import panda3d_kivy.config # noqa

import kivy
from kivy.app import App as KivyApp
from kivy.base import runTouchApp
from kivy.lang import parser
Expand Down Expand Up @@ -58,4 +59,14 @@ def run(self):
if root:
self.root = root

runTouchApp(self.root, slave=True)
# See https://github.com/kivy/kivy/pull/6937
kwargs = {}
version, *_ = kivy.parse_kivy_version(kivy.version.__version__)
major, *_ = version

if major < 2:
kwargs['slave'] = True
else:
kwargs['embedded'] = True

runTouchApp(self.root, **kwargs)

0 comments on commit 46c0539

Please sign in to comment.