> > >I am trying to add a component to the tryton client on windows > >that needs a window handle. > >I am trying to put it into a gtk.DrawingArea - but window property > >of the DrawingArea is always None and I can not get the handle > >of it. > >trying a realise() fails with: > >gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || > >GTK_IS_INVISIBLE (widget)' failed > > This is more a GTK problem than a tryton one, so you will probably get > better answers on a GTK mailing list. But we can try. > Yes, maybe - but outside of the tryton client it works...
> Does it work on linux? Do you have a small toy script that display > the expected behavior correctly? Can you post a pastebin of the code? did for some reason not try Linux for this... Another question that could (should) be asked is "Why do you want to > do that?" is it the browser inside tryton idea you had? And you want > to embed Internet Explorer … If so I wish you A LOT of luck ;) Yes. I have a full working webkit solution for win, mac and linux. But I ran into the DOM bug of pywebkitgtk (only on the windows webkit integration I use) see: http://www.gnu.org/software/pythonwebkit/ for details. So I thought, using IE as a fallback would be nice to get around this problem. I have a working IE example without any tryton at all: http://pastebin.com/rRi4aK0G I implemented the browser in 2 ways: a) as a widget b) as something similar as dashboard => tryton.gui.window.view_board.* so I now have tryton.gui.window.view_browser. (the intend is not to have a full browser inside tryton, but to integrated websites known to be safe and working e.g. a map or a ticket system) I have pased a stripped off tryton.gui.window.view_browser.view_browser here: http://pastebin.com/8zMnxESR just for testing purpose, you could add gtk.DrawingArea() to tryton.gui.window.view_board.view_board to see, if it is working ... regards Henrik -- [email protected] mailing list
