Esempio n. 1
0
File: api.py Progetto: MySheep/Archy
def insert_text(textString, styleString = None):
    cmd = archyState.commandMap.findSystemCommand( 'AddText')
    cmd.setinfo(textString, styleString)
    execute_and_record_command(cmd)
Esempio n. 2
0
File: api.py Progetto: MySheep/Archy
def set_selection_list(selections):
    cmd = archyState.commandMap.findSystemCommand( 'SetSelectionList')
    cmd.setinfo(selections)
    execute_and_record_command(cmd)
Esempio n. 3
0
File: api.py Progetto: MySheep/Archy
def set_style(**styles):
    import commands.style_editing
    style = commands.style_editing.StyleCommand(**styles)
    execute_and_record_command(style)
Esempio n. 4
0
def set_cursor(pos):
    cmd = archyState.commandMap.findSystemCommand( 'SetCursor')
    cmd.setinfo(pos)
    execute_and_record_command(cmd)
Esempio n. 5
0
File: api.py Progetto: MySheep/Archy
def set_cursor(pos):
    cmd = archyState.commandMap.findSystemCommand( 'SetCursor')
    cmd.setinfo(pos)
    execute_and_record_command(cmd)
Esempio n. 6
0
File: api.py Progetto: MySheep/Archy
def leap_backward(target):
    cmd = archyState.commandMap.findSystemCommand( 'LEAP backward to:' )
    cmd.setinfo(target)
    execute_and_record_command(cmd)
Esempio n. 7
0
File: api.py Progetto: MySheep/Archy
def creep_backward():
    cmd = archyState.commandMap.findSystemCommand( 'CreepRight')
    execute_and_record_command(cmd)
Esempio n. 8
0
def leap_backward(target):
    cmd = archyState.commandMap.findSystemCommand( 'LEAP backward to:' )
    cmd.setinfo(target)
    execute_and_record_command(cmd)
Esempio n. 9
0
def creep_forward():
    cmd = archyState.commandMap.findSystemCommand( 'CreepLeft')
    execute_and_record_command(cmd)
Esempio n. 10
0
def delete_selection(addToDeletionsDocument = 1):
    cmd = archyState.commandMap.findSystemCommand( 'DeleteText' )
    cmd.setinfo(addToDeletionsDocument)
    execute_and_record_command(cmd)
Esempio n. 11
0
def run_command(commandName):
# TO DO: Fix this when commandMap is worked out.
    cmd = archyState.commandMap.findCommand(commandName)
    execute_and_record_command(cmd)
Esempio n. 12
0
def insert_text(textString, styleString = None):
    cmd = archyState.commandMap.findSystemCommand( 'AddText')
    cmd.setinfo(textString, styleString)
    execute_and_record_command(cmd)
Esempio n. 13
0
def set_style(**styles):
    import commands.style_editing
    style = commands.style_editing.StyleCommand(**styles)
    execute_and_record_command(style)
Esempio n. 14
0
def set_selection_list(selections):
    cmd = archyState.commandMap.findSystemCommand( 'SetSelectionList')
    cmd.setinfo(selections)
    execute_and_record_command(cmd)
Esempio n. 15
0
File: api.py Progetto: MySheep/Archy
def delete_selection(addToDeletionsDocument = 1):
    cmd = archyState.commandMap.findSystemCommand( 'DeleteText' )
    cmd.setinfo(addToDeletionsDocument)
    execute_and_record_command(cmd)
Esempio n. 16
0
def creep_backward():
    cmd = archyState.commandMap.findSystemCommand( 'CreepRight')
    execute_and_record_command(cmd)
Esempio n. 17
0
File: api.py Progetto: MySheep/Archy
def run_command(commandName):
# TO DO: Fix this when commandMap is worked out.
    cmd = archyState.commandMap.findCommand(commandName)
    execute_and_record_command(cmd)
Esempio n. 18
0
def select():
    cmd = archyState.commandMap.findSystemCommand( 'Select')
    execute_and_record_command(cmd)
Esempio n. 19
0
File: api.py Progetto: MySheep/Archy
def creep_forward():
    cmd = archyState.commandMap.findSystemCommand( 'CreepLeft')
    execute_and_record_command(cmd)
Esempio n. 20
0
File: api.py Progetto: MySheep/Archy
def set_selection(selectionName, start, end):
    cmd = archyState.commandMap.findSystemCommand( 'SetSelection')
    cmd.setinfo( selectionName, start, end)
    execute_and_record_command(cmd)
Esempio n. 21
0
File: api.py Progetto: MySheep/Archy
def select():
    cmd = archyState.commandMap.findSystemCommand( 'Select')
    execute_and_record_command(cmd)
Esempio n. 22
0
def set_selection(selectionName, start, end):
    cmd = archyState.commandMap.findSystemCommand( 'SetSelection')
    cmd.setinfo( selectionName, start, end)
    execute_and_record_command(cmd)