tw2.etc

This package contains random widgets.

IFrameWidget
  • title
    • Title (optional)
  • height
    • None
  • width
    • None
  • url
    • Synonym for src
class DemoIFrame(IFrameWidget):
    width="700px"
    height="400px"
    src="http://threebean.wordpress.com"
<%namespace name="tw" module="tw2.core.mako_util"/>\
<div>
% if w.title:
<h1>${w.title}</h1>
% endif
<iframe ${tw.attrs(attrs=w.attrs)}>
<p>Your browser does not support iframes.</p>
</iframe>
</div>