|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' |
|
3 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> |
|
4 <html><head> |
|
5 <title>eric5.Graphics.GraphicsUtilities</title> |
|
6 <style> |
|
7 b'body {\n background:white;\n margin: 0em 1em 10em 1em;\n color: black;\n}\n\nh1 { color: white; background: #4FA4FF; }\nh2 { color: white; background: #4FA4FF; }\nh3 { color: white; background: #00557F; }\nh4 { color: white; background: #00557F; }\n \na { color: #AA5500; }\n' |
|
8 </style> |
|
9 </head> |
|
10 <body><a NAME="top" ID="top"></a> |
|
11 <h1>eric5.Graphics.GraphicsUtilities</h1> |
|
12 <p> |
|
13 Module implementing some graphical utility functions. |
|
14 </p> |
|
15 <h3>Global Attributes</h3> |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 <table> |
|
21 <tr> |
|
22 <td><a href="#RecursionError">RecursionError</a></td> |
|
23 <td>Unable to calculate result because of recursive structure.</td> |
|
24 </tr> |
|
25 </table> |
|
26 <h3>Functions</h3> |
|
27 <table> |
|
28 <tr> |
|
29 <td><a href="#_buildChildrenLists">_buildChildrenLists</a></td> |
|
30 <td>Function to build up parent - child relationships.</td> |
|
31 </tr><tr> |
|
32 <td><a href="#sort">sort</a></td> |
|
33 <td>Function to sort widgets topographically.</td> |
|
34 </tr> |
|
35 </table> |
|
36 <hr /><hr /> |
|
37 <a NAME="RecursionError" ID="RecursionError"></a> |
|
38 <h2>RecursionError</h2> |
|
39 <p> |
|
40 Unable to calculate result because of recursive structure. |
|
41 </p> |
|
42 <h3>Derived from</h3> |
|
43 OverflowError, ValueError |
|
44 <h3>Class Attributes</h3> |
|
45 <table> |
|
46 <tr><td>None</td></tr> |
|
47 </table> |
|
48 <h3>Methods</h3> |
|
49 <table> |
|
50 <tr><td>None</td></tr> |
|
51 </table> |
|
52 |
|
53 <div align="right"><a href="#top">Up</a></div> |
|
54 <hr /><hr /> |
|
55 <a NAME="_buildChildrenLists" ID="_buildChildrenLists"></a> |
|
56 <h2>_buildChildrenLists</h2> |
|
57 <b>_buildChildrenLists</b>(<i>routes</i>) |
|
58 <p> |
|
59 Function to build up parent - child relationships. |
|
60 </p><p> |
|
61 Taken from Boa Constructor. |
|
62 </p><dl> |
|
63 <dt><i>routes</i></dt> |
|
64 <dd> |
|
65 list of routes between nodes |
|
66 </dd> |
|
67 </dl><dl> |
|
68 <dt>Returns:</dt> |
|
69 <dd> |
|
70 dictionary of child and dictionary of parent relationships |
|
71 </dd> |
|
72 </dl> |
|
73 <div align="right"><a href="#top">Up</a></div> |
|
74 <hr /><hr /> |
|
75 <a NAME="sort" ID="sort"></a> |
|
76 <h2>sort</h2> |
|
77 <b>sort</b>(<i>nodes, routes, noRecursion = False</i>) |
|
78 <p> |
|
79 Function to sort widgets topographically. |
|
80 </p><p> |
|
81 Passed a list of nodes and a list of source, dest routes, it attempts |
|
82 to create a list of stages, where each sub list is one stage in a process. |
|
83 </p><p> |
|
84 The algorithm was taken from Boa Constructor. |
|
85 </p><dl> |
|
86 <dt><i>nodes</i></dt> |
|
87 <dd> |
|
88 list of nodes to be sorted |
|
89 </dd><dt><i>routes</i></dt> |
|
90 <dd> |
|
91 list of routes between the nodes |
|
92 </dd><dt><i>noRecursion</i></dt> |
|
93 <dd> |
|
94 flag indicating, if recursion errors should be raised |
|
95 </dd> |
|
96 </dl><dl> |
|
97 <dt>Returns:</dt> |
|
98 <dd> |
|
99 list of stages |
|
100 </dd> |
|
101 </dl><dl> |
|
102 <dt>Raises <b>RecursionError</b>:</dt> |
|
103 <dd> |
|
104 a recursion error was detected |
|
105 </dd> |
|
106 </dl> |
|
107 <div align="right"><a href="#top">Up</a></div> |
|
108 <hr /> |
|
109 </body></html> |