[maemo-developers] Get xid from hildon desktop home plugin using pygtk
From: Sergio Galán sgalan at inv.it.uc3m.esDate: Mon Apr 21 04:14:04 EEST 2008
- Previous message: [ANNOUNCE] Xournal 0.4.2.1 has been ported to Maemo Chinook
- Next message: Get xid from hildon desktop home plugin using pygtk
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, I'm working in a home Widget which can play video using an embedded mplayer, so I need to get the xid. Using usual (py)GTK window I don't have any problem. ... 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: ... 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
- Previous message: [ANNOUNCE] Xournal 0.4.2.1 has been ported to Maemo Chinook
- Next message: Get xid from hildon desktop home plugin using pygtk
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]