Documentation/Source/eric5.Graphics.GraphicsUtilities.html

changeset 58
37f0444c3479
parent 21
b88a0e6268bd
child 409
0ea528e80202
equal deleted inserted replaced
57:81326a94fdca 58:37f0444c3479
20 </style> 20 </style>
21 </head> 21 </head>
22 <body><a NAME="top" ID="top"></a> 22 <body><a NAME="top" ID="top"></a>
23 <h1>eric5.Graphics.GraphicsUtilities</h1> 23 <h1>eric5.Graphics.GraphicsUtilities</h1>
24 <p> 24 <p>
25 &#77;&#111;&#100;&#117;&#108;&#101; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#115;&#111;&#109;&#101; &#103;&#114;&#97;&#112;&#104;&#105;&#99;&#97;&#108; &#117;&#116;&#105;&#108;&#105;&#116;y &#102;&#117;&#110;&#99;&#116;&#105;&#111;&#110;&#115;. 25 Module implementing some graphical utility functions.
26 </p> 26 </p>
27 <h3>Global Attributes</h3> 27 <h3>Global Attributes</h3>
28 <table> 28 <table>
29 <tr><td>None</td></tr> 29 <tr><td>None</td></tr>
30 </table> 30 </table>
31 <h3>Classes</h3> 31 <h3>Classes</h3>
32 <table> 32 <table>
33 <tr> 33 <tr>
34 <td><a href="#RecursionError">RecursionError</a></td> 34 <td><a href="#RecursionError">RecursionError</a></td>
35 <td>&#85;&#110;&#97;&#98;&#108;&#101; &#116;&#111; &#99;&#97;&#108;&#99;&#117;&#108;&#97;&#116;&#101; &#114;&#101;&#115;&#117;&#108;&#116; &#98;&#101;&#99;&#97;&#117;&#115;&#101; &#111;&#102; &#114;&#101;&#99;&#117;&#114;&#115;&#105;v&#101; &#115;&#116;&#114;&#117;&#99;&#116;&#117;&#114;&#101;.</td> 35 <td>Unable to calculate result because of recursive structure.</td>
36 </tr> 36 </tr>
37 </table> 37 </table>
38 <h3>Functions</h3> 38 <h3>Functions</h3>
39 <table> 39 <table>
40 <tr> 40 <tr>
41 <td><a href="#_buildChildrenLists">_buildChildrenLists</a></td> 41 <td><a href="#_buildChildrenLists">_buildChildrenLists</a></td>
42 <td>&#70;&#117;&#110;&#99;&#116;&#105;&#111;&#110; &#116;&#111; &#98;&#117;&#105;&#108;&#100; &#117;&#112; &#112;&#97;&#114;&#101;&#110;&#116; - &#99;&#104;&#105;&#108;&#100; &#114;&#101;&#108;&#97;&#116;&#105;&#111;&#110;&#115;&#104;&#105;&#112;&#115;.</td> 42 <td>Function to build up parent - child relationships.</td>
43 </tr><tr> 43 </tr><tr>
44 <td><a href="#sort">sort</a></td> 44 <td><a href="#sort">sort</a></td>
45 <td>&#70;&#117;&#110;&#99;&#116;&#105;&#111;&#110; &#116;&#111; &#115;&#111;&#114;&#116; w&#105;&#100;&#103;&#101;&#116;&#115; &#116;&#111;&#112;&#111;&#103;&#114;&#97;&#112;&#104;&#105;&#99;&#97;&#108;&#108;y.</td> 45 <td>Function to sort widgets topographically.</td>
46 </tr> 46 </tr>
47 </table> 47 </table>
48 <hr /><hr /> 48 <hr /><hr />
49 <a NAME="RecursionError" ID="RecursionError"></a> 49 <a NAME="RecursionError" ID="RecursionError"></a>
50 <h2>RecursionError</h2> 50 <h2>RecursionError</h2>
51 <p> 51 <p>
52 &#85;&#110;&#97;&#98;&#108;&#101; &#116;&#111; &#99;&#97;&#108;&#99;&#117;&#108;&#97;&#116;&#101; &#114;&#101;&#115;&#117;&#108;&#116; &#98;&#101;&#99;&#97;&#117;&#115;&#101; &#111;&#102; &#114;&#101;&#99;&#117;&#114;&#115;&#105;v&#101; &#115;&#116;&#114;&#117;&#99;&#116;&#117;&#114;&#101;. 52 Unable to calculate result because of recursive structure.
53 </p> 53 </p>
54 <h3>Derived from</h3> 54 <h3>Derived from</h3>
55 OverflowError, ValueError 55 OverflowError, ValueError
56 <h3>Class Attributes</h3> 56 <h3>Class Attributes</h3>
57 <table> 57 <table>
66 <hr /><hr /> 66 <hr /><hr />
67 <a NAME="_buildChildrenLists" ID="_buildChildrenLists"></a> 67 <a NAME="_buildChildrenLists" ID="_buildChildrenLists"></a>
68 <h2>_buildChildrenLists</h2> 68 <h2>_buildChildrenLists</h2>
69 <b>_buildChildrenLists</b>(<i>routes</i>) 69 <b>_buildChildrenLists</b>(<i>routes</i>)
70 <p> 70 <p>
71 &#70;&#117;&#110;&#99;&#116;&#105;&#111;&#110; &#116;&#111; &#98;&#117;&#105;&#108;&#100; &#117;&#112; &#112;&#97;&#114;&#101;&#110;&#116; - &#99;&#104;&#105;&#108;&#100; &#114;&#101;&#108;&#97;&#116;&#105;&#111;&#110;&#115;&#104;&#105;&#112;&#115;. 71 Function to build up parent - child relationships.
72 </p><p> 72 </p><p>
73 &#84;&#97;&#107;&#101;&#110; &#102;&#114;&#111;&#109; &#66;&#111;&#97; &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;. 73 Taken from Boa Constructor.
74 </p><dl> 74 </p><dl>
75 <dt><i>routes</i></dt> 75 <dt><i>routes</i></dt>
76 <dd> 76 <dd>
77 &#108;&#105;&#115;&#116; &#111;&#102; &#114;&#111;&#117;&#116;&#101;&#115; &#98;&#101;&#116;w&#101;&#101;&#110; &#110;&#111;&#100;&#101;&#115; 77 list of routes between nodes
78 </dd> 78 </dd>
79 </dl><dl> 79 </dl><dl>
80 <dt>Returns:</dt> 80 <dt>Returns:</dt>
81 <dd> 81 <dd>
82 &#100;&#105;&#99;&#116;&#105;&#111;&#110;&#97;&#114;y &#111;&#102; &#99;&#104;&#105;&#108;&#100; &#97;&#110;&#100; &#100;&#105;&#99;&#116;&#105;&#111;&#110;&#97;&#114;y &#111;&#102; &#112;&#97;&#114;&#101;&#110;&#116; &#114;&#101;&#108;&#97;&#116;&#105;&#111;&#110;&#115;&#104;&#105;&#112;&#115; 82 dictionary of child and dictionary of parent relationships
83 </dd> 83 </dd>
84 </dl> 84 </dl>
85 <div align="right"><a href="#top">Up</a></div> 85 <div align="right"><a href="#top">Up</a></div>
86 <hr /><hr /> 86 <hr /><hr />
87 <a NAME="sort" ID="sort"></a> 87 <a NAME="sort" ID="sort"></a>
88 <h2>sort</h2> 88 <h2>sort</h2>
89 <b>sort</b>(<i>nodes, routes, noRecursion = False</i>) 89 <b>sort</b>(<i>nodes, routes, noRecursion = False</i>)
90 <p> 90 <p>
91 &#70;&#117;&#110;&#99;&#116;&#105;&#111;&#110; &#116;&#111; &#115;&#111;&#114;&#116; w&#105;&#100;&#103;&#101;&#116;&#115; &#116;&#111;&#112;&#111;&#103;&#114;&#97;&#112;&#104;&#105;&#99;&#97;&#108;&#108;y. 91 Function to sort widgets topographically.
92 </p><p> 92 </p><p>
93 &#80;&#97;&#115;&#115;&#101;&#100; &#97; &#108;&#105;&#115;&#116; &#111;&#102; &#110;&#111;&#100;&#101;&#115; &#97;&#110;&#100; &#97; &#108;&#105;&#115;&#116; &#111;&#102; &#115;&#111;&#117;&#114;&#99;&#101;, &#100;&#101;&#115;&#116; &#114;&#111;&#117;&#116;&#101;&#115;, &#105;&#116; &#97;&#116;&#116;&#101;&#109;&#112;&#116;&#115; 93 Passed a list of nodes and a list of source, dest routes, it attempts
94 &#116;&#111; &#99;&#114;&#101;&#97;&#116;&#101; &#97; &#108;&#105;&#115;&#116; &#111;&#102; &#115;&#116;&#97;&#103;&#101;&#115;, w&#104;&#101;&#114;&#101; &#101;&#97;&#99;&#104; &#115;&#117;&#98; &#108;&#105;&#115;&#116; &#105;&#115; &#111;&#110;&#101; &#115;&#116;&#97;&#103;&#101; &#105;&#110; &#97; &#112;&#114;&#111;&#99;&#101;&#115;&#115;. 94 to create a list of stages, where each sub list is one stage in a process.
95 </p><p> 95 </p><p>
96 &#84;&#104;&#101; &#97;&#108;&#103;&#111;&#114;&#105;&#116;&#104;&#109; w&#97;&#115; &#116;&#97;&#107;&#101;&#110; &#102;&#114;&#111;&#109; &#66;&#111;&#97; &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;. 96 The algorithm was taken from Boa Constructor.
97 </p><dl> 97 </p><dl>
98 <dt><i>nodes</i></dt> 98 <dt><i>nodes</i></dt>
99 <dd> 99 <dd>
100 &#108;&#105;&#115;&#116; &#111;&#102; &#110;&#111;&#100;&#101;&#115; &#116;&#111; &#98;&#101; &#115;&#111;&#114;&#116;&#101;&#100; 100 list of nodes to be sorted
101 </dd><dt><i>routes</i></dt> 101 </dd><dt><i>routes</i></dt>
102 <dd> 102 <dd>
103 &#108;&#105;&#115;&#116; &#111;&#102; &#114;&#111;&#117;&#116;&#101;&#115; &#98;&#101;&#116;w&#101;&#101;&#110; &#116;&#104;&#101; &#110;&#111;&#100;&#101;&#115; 103 list of routes between the nodes
104 </dd><dt><i>noRecursion</i></dt> 104 </dd><dt><i>noRecursion</i></dt>
105 <dd> 105 <dd>
106 &#102;&#108;&#97;&#103; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#105;&#110;&#103;, &#105;&#102; &#114;&#101;&#99;&#117;&#114;&#115;&#105;&#111;&#110; &#101;&#114;&#114;&#111;&#114;&#115; &#115;&#104;&#111;&#117;&#108;&#100; &#98;&#101; &#114;&#97;&#105;&#115;&#101;&#100; 106 flag indicating, if recursion errors should be raised
107 </dd> 107 </dd>
108 </dl><dl> 108 </dl><dl>
109 <dt>Returns:</dt> 109 <dt>Returns:</dt>
110 <dd> 110 <dd>
111 &#108;&#105;&#115;&#116; &#111;&#102; &#115;&#116;&#97;&#103;&#101;&#115; 111 list of stages
112 </dd> 112 </dd>
113 </dl><dl> 113 </dl><dl>
114 <dt>Raises <b>RecursionError</b>:</dt> 114 <dt>Raises <b>RecursionError</b>:</dt>
115 <dd> 115 <dd>
116 &#97; &#114;&#101;&#99;&#117;&#114;&#115;&#105;&#111;&#110; &#101;&#114;&#114;&#111;&#114; w&#97;&#115; &#100;&#101;&#116;&#101;&#99;&#116;&#101;&#100; 116 a recursion error was detected
117 </dd> 117 </dd>
118 </dl> 118 </dl>
119 <div align="right"><a href="#top">Up</a></div> 119 <div align="right"><a href="#top">Up</a></div>
120 <hr /> 120 <hr />
121 </body></html> 121 </body></html>

eric ide

mercurial