import const
import qvariant_converter
-from bertos_utils import presetList
+from bertos_utils import presetList, _cmp
class BBoardPage(BWizardPage):
"""
"""
preset_list = self.projectInfo("PRESET_TREE")
preset_list = preset_list["children"]
- def _cmp(x, y):
- return cmp(x["info"].get('ord', 0), y["info"].get('ord', 0))
preset_list = sorted(preset_list.values(), _cmp)
self.setItems(preset_list)