16 |
16 |
17 a { color: #BA6D36; } |
17 a { color: #BA6D36; } |
18 |
18 |
19 </style> |
19 </style> |
20 </head> |
20 </head> |
21 <body><a NAME="top" ID="top"></a> |
21 <body> |
|
22 <a NAME="top" ID="top"></a> |
22 <h1>eric6.Graphics.GraphicsUtilities</h1> |
23 <h1>eric6.Graphics.GraphicsUtilities</h1> |
|
24 |
23 <p> |
25 <p> |
24 Module implementing some graphical utility functions. |
26 Module implementing some graphical utility functions. |
25 </p> |
27 </p> |
26 <h3>Global Attributes</h3> |
28 <h3>Global Attributes</h3> |
|
29 |
27 <table> |
30 <table> |
28 <tr><td>None</td></tr> |
31 <tr><td>None</td></tr> |
29 </table> |
32 </table> |
30 <h3>Classes</h3> |
33 <h3>Classes</h3> |
|
34 |
31 <table> |
35 <table> |
|
36 |
32 <tr> |
37 <tr> |
33 <td><a href="#RecursionError">RecursionError</a></td> |
38 <td><a href="#RecursionError">RecursionError</a></td> |
34 <td>Unable to calculate result because of recursive structure.</td> |
39 <td>Unable to calculate result because of recursive structure.</td> |
35 </tr> |
40 </tr> |
36 </table> |
41 </table> |
37 <h3>Functions</h3> |
42 <h3>Functions</h3> |
|
43 |
38 <table> |
44 <table> |
|
45 |
39 <tr> |
46 <tr> |
40 <td><a href="#_buildChildrenLists">_buildChildrenLists</a></td> |
47 <td><a href="#_buildChildrenLists">_buildChildrenLists</a></td> |
41 <td>Function to build up parent - child relationships.</td> |
48 <td>Function to build up parent - child relationships.</td> |
42 </tr><tr> |
49 </tr> |
|
50 <tr> |
43 <td><a href="#sort">sort</a></td> |
51 <td><a href="#sort">sort</a></td> |
44 <td>Function to sort widgets topographically.</td> |
52 <td>Function to sort widgets topographically.</td> |
45 </tr> |
53 </tr> |
46 </table> |
54 </table> |
47 <hr /><hr /> |
55 <hr /> |
|
56 <hr /> |
48 <a NAME="RecursionError" ID="RecursionError"></a> |
57 <a NAME="RecursionError" ID="RecursionError"></a> |
49 <h2>RecursionError</h2> |
58 <h2>RecursionError</h2> |
|
59 |
50 <p> |
60 <p> |
51 Unable to calculate result because of recursive structure. |
61 Unable to calculate result because of recursive structure. |
52 </p> |
62 </p> |
53 <h3>Derived from</h3> |
63 <h3>Derived from</h3> |
54 OverflowError, ValueError |
64 OverflowError, ValueError |
55 <h3>Class Attributes</h3> |
65 <h3>Class Attributes</h3> |
|
66 |
56 <table> |
67 <table> |
57 <tr><td>None</td></tr> |
68 <tr><td>None</td></tr> |
58 </table> |
69 </table> |
59 <h3>Class Methods</h3> |
70 <h3>Class Methods</h3> |
|
71 |
60 <table> |
72 <table> |
61 <tr><td>None</td></tr> |
73 <tr><td>None</td></tr> |
62 </table> |
74 </table> |
63 <h3>Methods</h3> |
75 <h3>Methods</h3> |
|
76 |
64 <table> |
77 <table> |
65 <tr><td>None</td></tr> |
78 <tr><td>None</td></tr> |
66 </table> |
79 </table> |
67 <h3>Static Methods</h3> |
80 <h3>Static Methods</h3> |
|
81 |
68 <table> |
82 <table> |
69 <tr><td>None</td></tr> |
83 <tr><td>None</td></tr> |
70 </table> |
84 </table> |
71 |
85 |
72 <div align="right"><a href="#top">Up</a></div> |
86 <div align="right"><a href="#top">Up</a></div> |
73 <hr /><hr /> |
87 <hr /> |
|
88 <hr /> |
74 <a NAME="_buildChildrenLists" ID="_buildChildrenLists"></a> |
89 <a NAME="_buildChildrenLists" ID="_buildChildrenLists"></a> |
75 <h2>_buildChildrenLists</h2> |
90 <h2>_buildChildrenLists</h2> |
76 <b>_buildChildrenLists</b>(<i>routes</i>) |
91 <b>_buildChildrenLists</b>(<i>routes</i>) |
|
92 |
77 <p> |
93 <p> |
78 Function to build up parent - child relationships. |
94 Function to build up parent - child relationships. |
79 </p><p> |
95 </p> |
|
96 <p> |
80 Taken from Boa Constructor. |
97 Taken from Boa Constructor. |
81 </p><dl> |
98 </p> |
|
99 <dl> |
|
100 |
82 <dt><i>routes</i></dt> |
101 <dt><i>routes</i></dt> |
83 <dd> |
102 <dd> |
84 list of routes between nodes |
103 list of routes between nodes |
85 </dd> |
104 </dd> |
86 </dl><dl> |
105 </dl> |
|
106 <dl> |
87 <dt>Returns:</dt> |
107 <dt>Returns:</dt> |
88 <dd> |
108 <dd> |
89 dictionary of child and dictionary of parent relationships |
109 dictionary of child and dictionary of parent relationships |
90 </dd> |
110 </dd> |
91 </dl> |
111 </dl> |
92 <div align="right"><a href="#top">Up</a></div> |
112 <div align="right"><a href="#top">Up</a></div> |
93 <hr /><hr /> |
113 <hr /> |
|
114 <hr /> |
94 <a NAME="sort" ID="sort"></a> |
115 <a NAME="sort" ID="sort"></a> |
95 <h2>sort</h2> |
116 <h2>sort</h2> |
96 <b>sort</b>(<i>nodes, routes, noRecursion=False</i>) |
117 <b>sort</b>(<i>nodes, routes, noRecursion=False</i>) |
|
118 |
97 <p> |
119 <p> |
98 Function to sort widgets topographically. |
120 Function to sort widgets topographically. |
99 </p><p> |
121 </p> |
|
122 <p> |
100 Passed a list of nodes and a list of source, dest routes, it attempts |
123 Passed a list of nodes and a list of source, dest routes, it attempts |
101 to create a list of stages, where each sub list is one stage in a process. |
124 to create a list of stages, where each sub list is one stage in a process. |
102 </p><p> |
125 </p> |
|
126 <p> |
103 The algorithm was taken from Boa Constructor. |
127 The algorithm was taken from Boa Constructor. |
104 </p><dl> |
128 </p> |
|
129 <dl> |
|
130 |
105 <dt><i>nodes</i></dt> |
131 <dt><i>nodes</i></dt> |
106 <dd> |
132 <dd> |
107 list of nodes to be sorted |
133 list of nodes to be sorted |
108 </dd><dt><i>routes</i></dt> |
134 </dd> |
|
135 <dt><i>routes</i></dt> |
109 <dd> |
136 <dd> |
110 list of routes between the nodes |
137 list of routes between the nodes |
111 </dd><dt><i>noRecursion</i></dt> |
138 </dd> |
|
139 <dt><i>noRecursion</i></dt> |
112 <dd> |
140 <dd> |
113 flag indicating, if recursion errors should be raised |
141 flag indicating, if recursion errors should be raised |
114 </dd> |
142 </dd> |
115 </dl><dl> |
143 </dl> |
|
144 <dl> |
116 <dt>Returns:</dt> |
145 <dt>Returns:</dt> |
117 <dd> |
146 <dd> |
118 list of stages |
147 list of stages |
119 </dd> |
148 </dd> |
120 </dl><dl> |
149 </dl> |
|
150 <dl> |
|
151 |
121 <dt>Raises <b>RecursionError</b>:</dt> |
152 <dt>Raises <b>RecursionError</b>:</dt> |
122 <dd> |
153 <dd> |
123 a recursion error was detected |
154 a recursion error was detected |
124 </dd> |
155 </dd> |
125 </dl> |
156 </dl> |