<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html40/loose.dtd"> <html> <head> <title>Class: selection_square</title> </head> <body bgcolor="#ffffff"> <p><i><a href="../../index.html">Table of Contents</a></i></p> <table border="0" cellpadding="5" cellspacing="0" width="100%"> <tr> <th rowspan="2" valign="top" align="left" width="10%" bgcolor="#88bbee"><font color="#000000">Class: selection_square</font> </th> <th bgcolor="#88bbee" width="90%" align="right"><font color="#000000">../bkchem/helper_graphics.py</font> </th> </tr> <tr> <td> <p>used to draw square around an object with hanldes in corners; provides user interaction for resizing, moving etc.</p> <table border="0" cellpadding="5" cellspacing="0" width="100%"> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="Base Classes">Base Classes</a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000"> </font> </th> </tr> <tr> <td> <a href="selection_rect.html">selection_rect</a><br> </td></tr> </table> <table border="0" cellpadding="5" cellspacing="0" width="100%"> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="Methods">Methods</a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000"> </font> </th> </tr> <tr> <td> <a href="#drag">drag</a><br> <a href="#draw">draw</a><br> <a href="#focus">focus</a><br> <a href="#get_fix">get_fix</a><br> <a href="#get_items">get_items</a><br> <a href="#redraw">redraw</a><br> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="drag"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">drag </font> </th> </tr> <tr> <td> <font color="#000088"><pre> drag ( self, x, y, fix=(), ) </pre></font> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="draw"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">draw </font> </th> </tr> <tr> <td> <font color="#000088"><pre> draw ( self ) </pre></font> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="focus"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">focus </font> </th> </tr> <tr> <td> <font color="#000088"><pre> focus ( self, item=None ) </pre></font> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="get_fix"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">get_fix </font> </th> </tr> <tr> <td> <font color="#000088"><pre> get_fix ( self ) </pre></font> <p>returns the coords that should be fixed if we now start to drag the selected corner</p> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="get_items"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">get_items </font> </th> </tr> <tr> <td> <font color="#000088"><pre> get_items ( self ) </pre></font> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="redraw"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">redraw </font> </th> </tr> <tr> <td> <font color="#000088"><pre> redraw ( self ) </pre></font> </td></tr> </td></tr> </table> </td> </tr> </table> <hr> <p><i><a href="../../index.html">Table of Contents</a></i></p> <font size="-2"><i>This document was automatically generated on Tue Dec 12 13:46:43 2006 by <a href="http://happydoc.sourceforge.net">HappyDoc</a> version 2.1</i></font> </body> </html>