wxpython, gstreamer and overlapping panel/staticText

Hi,

first of all, i'm new to python and wxpython, so excuse me if i ask a
dumb question

I'm trying to display a video into a wxPanel using gstreamer python
bindings => it works and it's easy to do (thanks for that)

Now, i want to write some text on the video display => i can't make it
works

i've created a wxFrame that contains a wxPanel that itself contains my
gstreamer video player

if i create a StaticText using the panel as parent, it works, but the
text does not take the available width (it's full screen). If i add it
to an hbox, it takes the full-width but is no more overlapping the
video panel.

I've search through the web and was not able to find a solution

any idea?

thanks in advance

Florian

You could try drawing on it with a Device Context (i.e. wx.DC or wx.GCDC). I don’t know if that will work or not since I’ve not tried it myself.

···

Mike Driscoll

Blog: http://blog.pythonlibrary.org