示例#1
0
def configure(**kargs):
    from amoco.config import get_module_conf
    conf = get_module_conf('ui')
    conf.update(kargs)
    f = conf['formatter']
    global default_formatter
    default_formatter = Formats.get(f,default_formatter)
示例#2
0
def configure(**kargs):
    from amoco.config import get_module_conf
    conf = get_module_conf('x86')
    conf.update(kargs)
    # asm format:
    if conf['format'] in ('AT&T', 'at&t', 'ATT', 'att'):
        instruction_x86.set_formatter(IA32_ATT)
    else:
        instruction_x86.set_formatter(IA32_Intel)
示例#3
0
def configure(**kargs):
    from amoco.config import get_module_conf
    conf = get_module_conf('ui')
    conf.update(kargs)
    g = conf['graphics']
    if g is 'gtk':
        from amoco.ui.graphics.gtk_ import engine
        Engine.engine = engine
    elif g is 'qt':
        from amoco.ui.graphics.qt_ import engine
        Engine.engine = engine
示例#4
0
def configure(**kargs):
    from amoco.config import get_module_conf
    conf = get_module_conf('x86')
    conf.update(kargs)
    if conf['highlight']:
        instruction.set_formatter(IA32_Intel_highlighted)