(catlog, lst)
| 201 | return rst |
| 202 | |
| 203 | def sort_widgets(catlog, lst): |
| 204 | rst = [] |
| 205 | for i in catlog: |
| 206 | if i=='-':rst.append('-') |
| 207 | for j in lst: |
| 208 | if j==i or j[:-3]==i or j[0].title==i: |
| 209 | lst.remove(j) |
| 210 | rst.append(j) |
| 211 | rst.extend(lst) |
| 212 | return rst |
| 213 | |
| 214 | def build_widgets(path, err=False): |
| 215 | root = err in (True, False) |
no test coverage detected