def JxBrowse(): from controls import Jx__Model_CardModel_String JxAnswerSettings = Jx__Model_CardModel_String("JxAnswerSettings") JxPreview.page().mainFrame().addToJavaScriptWindowObject("JxAnswerSettings",JxAnswerSettings) JxPreview.setWindowTitle(u"Css and Template Browser") from html import Jx_Html_Preview JxPreview.setHtml(Jx_Html_Preview,JxResourcesUrl) JxPreview.activateWindow() JxPreview.show()