Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

        def getSmartBrowser(forced = None):
    if forced == 'webkit':
        return get_webkit_browser()
    elif forced == 'mozembed':
        return get_mozembed_browser()

    try:
        b = get_webkit_browser()
    except:
        b = get_mozembed_browser()
    return b
        


src/y/o/youtubeclips-HEAD/youtubeclips/browserbox.py   youtubeclips(Download)
 
import sys, gtk, webbrowser
 
from browser import getSmartBrowser
 
    def __init__(self):
        gtk.VBox.__init__(self)
        #self.browser = webkit.WebView()
        self.browser = getSmartBrowser('mozembed')
        self.browser.set_size_request(300, 200)