|
|
2008-07-20
, 22:58
|
|
Posts: 8 |
Thanked: 1 time |
Joined on Jul 2008
|
#2
|
|
|
2008-07-21
, 19:52
|
|
Posts: 8 |
Thanked: 1 time |
Joined on Jul 2008
|
#3
|
I am trying to get the gtkmozembed (embedding browser window inside of PyGtk app) method working after following a related thread in this developers forum on this subject.
I will try to find the exact thread and back reference it in this post as soon as I find it.
Below is the exact code I am attempting to run from this site: as their
test case
http://www.pygtk.org/pygtkmozembed/c...mozembed.html:
<CODE>
import gtk
import gtkmozembed
class TinyGecko:
def __init__(self):
self.moz = gtkmozembed.MozEmbed()
win = gtk.Window()
win.add(self.moz)
win.show_all()
# self.moz.load_url('http://www.pygtk.org')
data = '<html><head><title>Hello</title></head><body>pygtk dev</body></html>'
self.moz.render_data(data, long(len(data)), 'file:///', 'text/html')
if __name__ == '__main__':
TinyGecko()
gtk.main()
<CODE>
@ http://www.pygtk.org/pygtkmozembed/c...kmozembed.html
Per the other thread mentioning this subject, I did install the plugins mentioned (the python2.5-gnome-extras package from www.ywwg.com/maemo) as well as the shared object successfully.
The code fails with a 'Seg fault' after running for a few seconds. This happens for both the (a) Load URL case (www.pygtk.org') & (b) for the commented out 'data' = '<html>... case' as well with the same behavior.
So finally the ? -- Has anyone gotten this to run properly under OS2008 Diablo? My hunch here is that the shared lib needs to be recompiled to work properly under OS2008 (I do not know how to resolve this myself?) This is only an guess on my part.
So, does anyone have this working &/or have any advise on what to do next to try to work this out. If I do get this working, I will postback the answer into this thread.
TIA for any advise. //GHudd