[plug] Python_WebKit

wolfbite wolfbite.aus at gmail.com
Sun Dec 25 09:18:42 WST 2011


Just dabbling

win.set_size_request(512,512)  sets the size
whats sets the position on screen?

Thanks

============================================
#!/bin/python
#tested&  works mungo

import gtk
import webkit

view = webkit.WebView()

sw = gtk.ScrolledWindow()
sw.add(view)

win = gtk.Window(gtk.WINDOW_TOPLEVEL)
win.set_size_request(512,512)
win.add(sw)
win.show_all()

view.open("http://www.bom.gov.au/radar/IDR00004.jpg")
gtk.main()


============================================





More information about the plug mailing list