Reply
Thread Tools Search this Thread
Posts: 5 | Thanked: 0 times | Joined on Apr 2008
#1
Hi¡
I'm new here. I'm working on develop desktop-widget (hildon desktop home plugin) using python.

I'm trying to play video using an embedded mplayer, so I need to get the xid. Using usual GTK windows I don't have any problem.
Code:
...
class videoPlugin():
def __init__(self):
        self.mwindow=gtk.Window(gtk.WINDOW_TOPLEVEL)
        MplayerWidget=gtk.DrawingArea()
        self.mwindow.add(MplayerWidget)        
        self.mwindow.show_all() 

        xid = MplayerWidget.window.xid
....
but if I use the same code on hildondesktop.HomeItem class:
Code:
...
class videoPlugin(hildondesktop.HomeItem):
    def __init__(self):
        MplayerWidget=gtk.DrawingArea()
        self.add(MplayerWidget)        
        self.show_all() 
        xid = MplayerWidget.window.xid
...
I get an error:
xid = MplayerWidget.window.xid
AttributeError: 'NoneType' object has no attribute 'xid'


¿Does hildon-desktop-home-plugin have xid? ¿How can I read it?

Thanks
 
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

 
Forum Jump


All times are GMT -4. The time now is 10:13 AM.