コード例 #1
0
def load_hotboxes(application):
    hotboxes_datas = load_hotboxes_datas(application.local_file)
    file_ = application.shared_file
    hotboxes_datas += [
        ensure_old_data_compatible(load_json(f)) for f in load_json(file_)]

    for hotboxes_data in hotboxes_datas:
        name = hotboxes_data['general']['name']
        reader = HotboxReader(hotboxes_data, parent=None)
        reader.hideSubmenusRequested.connect(hide_submenus)
        hotboxes[name] = reader
コード例 #2
0
def load_hotboxes(software):
    hotboxes_datas = load_hotboxes_datas(software.file)
    for hotboxes_data in hotboxes_datas:
        name = hotboxes_data['general']['name']
        reader = HotboxReader(hotboxes_data, parent=None)
        hotboxes[name] = reader