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 Module implementing some graphical utility functions. |
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>Unable to calculate result because of recursive structure.</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>Function to build up parent - child relationships.</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>Function to sort widgets topographically.</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 Unable to calculate result because of recursive structure. |
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 Function to build up parent - child relationships. |
71 Function to build up parent - child relationships. |
72 </p><p> |
72 </p><p> |
73 Taken from Boa Constructor. |
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 list of routes between nodes |
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 dictionary of child and dictionary of parent relationships |
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 Function to sort widgets topographically. |
91 Function to sort widgets topographically. |
92 </p><p> |
92 </p><p> |
93 Passed a list of nodes and a list of source, dest routes, it attempts |
93 Passed a list of nodes and a list of source, dest routes, it attempts |
94 to create a list of stages, where each sub list is one stage in a process. |
94 to create a list of stages, where each sub list is one stage in a process. |
95 </p><p> |
95 </p><p> |
96 The algorithm was taken from Boa Constructor. |
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 list of nodes to be sorted |
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 list of routes between the nodes |
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 flag indicating, if recursion errors should be raised |
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 list of stages |
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 a recursion error was detected |
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> |