Exemplo n.º 1
0
def tree_proc(id_tree, id_action, id_item=0, index=0, text='', image_index=-1):
    res = ct.tree_proc(id_tree, id_action, id_item, index, text, image_index)
    if res is None: return
    if id_action==TREE_ITEM_ENUM:
        res = res.splitlines()
        res = [r.split('=', 1) for r in res]
        res = [(int(r[0]), r[1]) for r in res]
    return res
Exemplo n.º 2
0
def tree_proc(id_tree, id_action, id_item=0, index=0, text='', image_index=-1):
    res = ct.tree_proc(id_tree, id_action, id_item, index, text, image_index)
    if res is None: return
    if id_action==TREE_ITEM_ENUM:
        res = res.splitlines()
        res = [r.split('=', 1) for r in res]
        res = [(int(r[0]), r[1]) for r in res]
    return res
Exemplo n.º 3
0
def tree_proc(id_tree,
              id_action,
              id_item=0,
              index=0,
              text='',
              image_index=-1,
              data=''):
    return ct.tree_proc(id_tree, id_action, id_item, index, to_str(text),
                        image_index, data)
Exemplo n.º 4
0
def tree_proc(id_tree, id_action, id_item=0, index=0, text='', image_index=-1):
    return ct.tree_proc(id_tree, id_action, id_item, index, text, image_index)
Exemplo n.º 5
0
def tree_proc(id_tree, id_action, id_item=0, index=0, text='', image_index=-1):
    return ct.tree_proc(id_tree, id_action, id_item, index, text, image_index)