How to setup a panda instance in a wxPython-Window?

How can I open the Panda3D INstance inside of a wxPython-Window/Frame? I’m a bit confused, because there are so many ways to setup a window, but most of them are throwing weird errors… :unamused:

I already tried the WxPandaShell, but that doesnt work for some reason:

C:\Panda3D-1.9.4\python\python.exe C:/Users/Daniel/PycharmProjects/TEsting/GameUI.py
C:\Panda3D-1.9.4\direct\wxwidgets\WxPandaShell.py:212: wxPyDeprecationWarning: Using deprecated class EventLoop. Use GUIEventLoop instead.
  self.evtLoop = wx.EventLoop()
C:\Panda3D-1.9.4\direct\showbase\ShowBase.py:2825: wxPyDeprecationWarning: Using deprecated class PySimpleApp. Use :class:`App` instead.
  self.wxApp = wx.PySimpleApp(redirect = False)
Known pipe types:
  wglGraphicsPipe
(all display modules loaded.)
:display:windisplay(warning): SetActiveWindow() failed!
:display:windisplay(warning): SetForegroundWindow() failed!
Traceback (most recent call last):
  File "C:\Panda3D-1.9.4\direct\wxwidgets\WxPandaShell.py", line 206, in wxStep
    self.wxApp.ProcessIdle()
AttributeError: 'App' object has no attribute 'ProcessIdle'
:task(error): Exception occurred in PythonTask evtLoopTask
Traceback (most recent call last):
  File "C:\Panda3D-1.9.4\direct\showbase\ShowBase.py", line 2868, in __wxTimerCallback
    self.taskMgr.step()
  File "C:\Panda3D-1.9.4\direct\task\Task.py", line 470, in step
    self.mgr.poll()
  File "C:\Panda3D-1.9.4\direct\wxwidgets\WxPandaShell.py", line 206, in wxStep
    self.wxApp.ProcessIdle()
AttributeError: 'App' object has no attribute 'ProcessIdle'
:display:windisplay(warning): SetForegroundWindow() failed!
:display:windisplay(warning): SetForegroundWindow() failed!
:display:windisplay(warning): SetForegroundWindow() failed!
Traceback (most recent call last):
  File "C:\Panda3D-1.9.4\direct\wxwidgets\WxPandaShell.py", line 206, in wxStep
    self.wxApp.ProcessIdle()
AttributeError: 'App' object has no attribute 'ProcessIdle'
:task(error): Exception occurred in PythonTask evtLoopTask
Traceback (most recent call last):
  File "C:\Panda3D-1.9.4\direct\showbase\ShowBase.py", line 2868, in __wxTimerCallback
    self.taskMgr.step()
  File "C:\Panda3D-1.9.4\direct\task\Task.py", line 470, in step
    self.mgr.poll()
  File "C:\Panda3D-1.9.4\direct\wxwidgets\WxPandaShell.py", line 206, in wxStep
    self.wxApp.ProcessIdle()
AttributeError: 'App' object has no attribute 'ProcessIdle'
Traceback (most recent call last):
  File "C:/Users/Daniel/PycharmProjects/TEsting/GameUI.py", line 13, in <module>
    Game().run()
  File "C:/Users/Daniel/PycharmProjects/TEsting/GameUI.py", line 9, in __init__
    WxPandaShell.__init__(self, fStartDirect=True)
  File "C:\Panda3D-1.9.4\direct\wxwidgets\WxPandaShell.py", line 50, in __init__
    self.initialize()
  File "C:\Panda3D-1.9.4\direct\wxwidgets\WxPandaShell.py", line 113, in initialize
    self.wxStep()
  File "C:\Panda3D-1.9.4\direct\wxwidgets\WxPandaShell.py", line 206, in wxStep
    self.wxApp.ProcessIdle()
AttributeError: 'App' object has no attribute 'ProcessIdle'

Process finished with exit code 1

Can someone please post a code-sample, how to setup a wxPython Window the easy way in Panda3D?