Dynamic resize with MPlayer and PyGTK

Posted by alex on Stack Overflow See other posts from Stack Overflow or by alex
Published on 2010-03-10T14:39:52Z Indexed on 2010/05/31 14:43 UTC
Read the original article Hit count: 277

Filed under:
|
|

Hi everyone; I've wrote a piece of code in python and pygtk for an embeded mplayer in a gui. I assume I use GtkSocket and the slave mode of mplayer with the -wid option.

But I've got an issue, when the size of my GTK window is smaller than my stream, the stream appears to be cropped. And when the size of my window is bigger than my stream, the stream appear centred inside the widget which embed MPlayer. (a gtk.Frame but I've also try with a gtk.DrawingArea) I would like to know how I can get my stream resize dynamically depending on the window's size. I don't want to use Glade or any GUI builder. Thanks in advance for any help, and please excuse my poor english.

© Stack Overflow or respective owner

Related posts about python

Related posts about pygtk