def createCSSClass(csstext): """ Create style element and attach css text """ _style = doc.createElement('style') _style.type = 'text/css' _style.innerHTML = csstext doc.get(tag='head')[0].appendChild(_style)
def createCSSClass(csstext): """ Create style element and attach css text """ _style=doc.createElement('style') _style.type='text/css' _style.innerHTML = csstext doc.get(tag='head')[0].appendChild(_style)
def draw_slide(doc, zone_id, page_data, confing_data): mk, scripts = page_data doc[zone_id].html = mk for script in scripts: exec(script, globals()) page_num = confing_data['page'] p = doc.get(classname="slidefooter-page")[0] p.text = page_num op = 1 if page_num > 1 or confing_data.get("show-footer-in-title-page") else 0 doc.get(classname="slidefooter-text")[0].style.opacity = p.style.opacity = op
def byId(id): """Retrieve element by Id""" _result=doc.get(id=id) return _result[0]
def byId(id): """Retrieve element by Id""" _result = doc.get(id=id) return _result[0]
def byId(id): _result=doc.get(id=id) return _result[0]
def byId(id): _result = doc.get(id=id) return _result[0]