MCPcopy Create free account
hub / github.com/Image-Py/imagepy / sort_widgets

Function sort_widgets

imagepy/core/loader/loader.py:203–212  ·  view source on GitHub ↗
(catlog, lst)

Source from the content-addressed store, hash-verified

201 return rst
202
203def 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
214def build_widgets(path, err=False):
215 root = err in (True, False)

Callers 1

build_widgetsFunction · 0.85

Calls 2

appendMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected