<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>border — Phatch v0.2 documentation</title> <link rel="stylesheet" href="_static/default.css" type="text/css" /> <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: '', VERSION: '0.2', COLLAPSE_MODINDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="_static/jquery.js"></script> <script type="text/javascript" src="_static/doctools.js"></script> <link rel="top" title="Phatch v0.2 documentation" href="index.html" /> <link rel="up" title="actions" href="actions.html" /> <link rel="next" title="brightness" href="actions.brightness.html" /> <link rel="prev" title="blender" href="actions.blender.html" /> </head> <body> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="genindex.html" title="General Index" accesskey="I">index</a></li> <li class="right" > <a href="modindex.html" title="Global Module Index" accesskey="M">modules</a> |</li> <li class="right" > <a href="actions.brightness.html" title="brightness" accesskey="N">next</a> |</li> <li class="right" > <a href="actions.blender.html" title="blender" accesskey="P">previous</a> |</li> <li><a href="index.html">Phatch v0.2 documentation</a> »</li> <li><a href="actions.html" accesskey="U">actions</a> »</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <div class="section" id="module-actions.border"> <h1>border<a class="headerlink" href="#module-actions.border" title="Permalink to this headline">¶</a></h1> <dl class="class"> <dt id="actions.border.Action"> <em class="property"> class </em><tt class="descclassname">actions.border.</tt><tt class="descname">Action</tt><big>(</big><em>**options</em><big>)</big><a class="headerlink" href="#actions.border.Action" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a title="core.models.Action" class="reference" href="core.models.html#core.models.Action"><tt class="xref docutils literal"><span class="pre">core.models.Action</span></tt></a></p> <p>Draw border inside or outside</p> <dl class="method"> <dt id="actions.border.Action.get_relevant_field_labels"> <tt class="descname">get_relevant_field_labels</tt><big>(</big><big>)</big><a class="headerlink" href="#actions.border.Action.get_relevant_field_labels" title="Permalink to this definition">¶</a></dt> <dd><p>If this method is present, Phatch will only show relevant fields. :returns: list of the field labels which are relevant :rtype: list of strings .. note:</p> <div class="highlight-python"><pre>It is very important that the list of labels has EXACTLY the same order as defined in the interface method.</pre> </div> </dd></dl> <dl class="staticmethod"> <dt id="actions.border.Action.init"> <em class="property"> static </em><tt class="descname">init</tt><big>(</big><big>)</big><a class="headerlink" href="#actions.border.Action.init" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="actions.border.Action.interface"> <tt class="descname">interface</tt><big>(</big><em>fields</em><big>)</big><a class="headerlink" href="#actions.border.Action.interface" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="staticmethod"> <dt id="actions.border.Action.pil"> <em class="property"> static </em><tt class="descname">pil</tt><big>(</big><em>image</em>, <em>method</em>, <em>border_width=0</em>, <em>left=0</em>, <em>right=0</em>, <em>top=0</em>, <em>bottom=0</em>, <em>color=0</em>, <em>opacity=100</em><big>)</big><a class="headerlink" href="#actions.border.Action.pil" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="actions.border.Action.values"> <tt class="descname">values</tt><big>(</big><em>info</em><big>)</big><a class="headerlink" href="#actions.border.Action.values" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="function"> <dt id="actions.border.border"> <tt class="descclassname">actions.border.</tt><tt class="descname">border</tt><big>(</big><em>image</em>, <em>method</em>, <em>border_width=0</em>, <em>left=0</em>, <em>right=0</em>, <em>top=0</em>, <em>bottom=0</em>, <em>color=0</em>, <em>opacity=100</em><big>)</big><a class="headerlink" href="#actions.border.border" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="function"> <dt id="actions.border.init"> <tt class="descclassname">actions.border.</tt><tt class="descname">init</tt><big>(</big><big>)</big><a class="headerlink" href="#actions.border.init" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </div> </div> </div> </div> <div class="sphinxsidebar"> <div class="sphinxsidebarwrapper"> <h4>Previous topic</h4> <p class="topless"><a href="actions.blender.html" title="previous chapter">blender</a></p> <h4>Next topic</h4> <p class="topless"><a href="actions.brightness.html" title="next chapter">brightness</a></p> <div id="searchbox" style="display: none"> <h3>Quick search</h3> <form class="search" action="search.html" method="get"> <input type="text" name="q" size="18" /> <input type="submit" value="Go" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> <p class="searchtip" style="font-size: 90%"> Enter search terms or a module, class or function name. </p> </div> <script type="text/javascript">$('#searchbox').show(0);</script> </div> </div> <div class="clearer"></div> </div> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="genindex.html" title="General Index" >index</a></li> <li class="right" > <a href="modindex.html" title="Global Module Index" >modules</a> |</li> <li class="right" > <a href="actions.brightness.html" title="brightness" >next</a> |</li> <li class="right" > <a href="actions.blender.html" title="blender" >previous</a> |</li> <li><a href="index.html">Phatch v0.2 documentation</a> »</li> <li><a href="actions.html" >actions</a> »</li> </ul> </div> <div class="footer"> © Copyright 2009, www.stani.be. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.2. </div> </body> </html>