Easy access to jsbrowser

This commit is contained in:
Kovid Goyal 2013-06-09 16:01:55 +05:30
parent 8eca0cd853
commit d33609785a

View File

@ -408,6 +408,10 @@ def browser(honor_time=True, max_time=2, mobile_browser=False, user_agent=None,
return opener return opener
def jsbrowser(*args, **kwargs):
from calibre.web.jsbrowser.browser import Browser
return Browser(*args, **kwargs)
def fit_image(width, height, pwidth, pheight): def fit_image(width, height, pwidth, pheight):
''' '''
Fit image in box of width pwidth and height pheight. Fit image in box of width pwidth and height pheight.