[Kde-bindings] [Bug 188315] New: Python: Phonon: VideoWidget and AudioOutput are missing base classes (breaks createPath)
Carlos Corbacho
cathectic at gmail.com
Sat Mar 28 11:10:49 UTC 2009
https://bugs.kde.org/show_bug.cgi?id=188315
Summary: Python: Phonon: VideoWidget and AudioOutput are
missing base classes (breaks createPath)
Product: bindings
Version: unspecified
Platform: Slackware Packages
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: kde-bindings at kde.org
ReportedBy: cathectic at gmail.com
Version: (using KDE 4.2.1)
Compiler: GCC 4.3.3
OS: Linux
Installed from: Slackware Packages
Steps to reproduce:
Trying to do something simple like the following (I've cut out the rest of the
relevant PyQT4/ PyKDE4 imports):
from PyKDE4.phonon import Phonon
class MyVideoPlayer(kdeui.KMainWindow):
def __init__(self, parent=None):
self.video_widget = phonon.Phonon.VideoWidget()
self.media_object = phonon.Phonon.MediaObject()
phonon.Phonon.createPath(self.media_object, self.video_widget)
Expected:
It works
Actual:
createPath() throws:
TypeError: argument 2 of createPath() has an invalid type
VideoWidget and AudioOutput in the Python bindings are missing base classes, so
do not inherit
from MediaNode. If you look at the C++ documentation, VideoWidget needs
to inherit from Phonon::AbstractVideoOutput as well as QWidget, and
AudioOutput needs to inherit from Phonon::AbstractAudioOutput (and PyKDE4
doesn't even have a binding for AbstractAudiOutput yet).
The patch is trivial (to follow).
This bug is still present in trunk as well as 4.2.1 - it would be nice to fix
this on the 4.2 branch as well for the next 4.2 release, but fixing it on
trunk would be enough.
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Kde-bindings
mailing list