Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(141)  |  Call(41)  |  Derive(47)  |  Import(53)

src/d/r/dragonfly-0.6.5/dragonfly/examples/outlook_example.py   dragonfly(Download)
"""
 
from dragonfly import (Grammar, AppContext, MappingRule, Choice,
                       Key, Text, Pause)
 
 
static_rule = MappingRule(
    name="static",
    mapping={
             "new folder":                   Key("cs-e"),
 
folder_rule = MappingRule(
    name="folder",
    mapping={
             "folder <folder>":   Key("c-1, home")

src/d/r/dragonfly-0.6.5/dragonfly/examples/notepad_example.py   dragonfly(Download)
"""
 
from dragonfly import (Grammar, AppContext, MappingRule, Dictation,
                       Key, Text)
 
 
example_rule = MappingRule(
    name="example",    # The name of the rule.
    mapping={          # The mapping dict: spec -> action.
             "save [file]":            Key("c-s"),

src/c/o/code-by-voice-HEAD/macros/_vim.py   code-by-voice(Download)
from dragonfly import (Grammar, AppContext, MappingRule, Dictation, Key, Text, Integer, Mimic, Playback)
vi = AppContext(title="vi")
gvim = AppContext(title="GVIM")
grammar = Grammar("vim", context=(vi | gvim))
 
noSpaceNoCaps = Mimic("\\no-caps-on") + Mimic("\\no-space-on")
 
rules = MappingRule(
    name = "vim",

src/c/o/code-by-voice-HEAD/macros/_javascript.py   code-by-voice(Download)
from dragonfly import (Grammar, AppContext, MappingRule, Dictation, Key, Text, Integer, Mimic)
javascript = AppContext(title="javascript")
grammar = Grammar("javascript", context=(javascript))
 
noSpaceNoCaps = Mimic("\\no-caps-on") + Mimic("\\no-space-on")
 
rules = MappingRule(
    name = "javascript",

src/c/o/code-by-voice-HEAD/macros/_bash.py   code-by-voice(Download)
from dragonfly import (Grammar, AppContext, MappingRule, Dictation, Key, Text, Integer, Mimic)
 
putty_context = AppContext(executable="putty")
bash_context = AppContext(title="bash")
grammar = Grammar("bash", context=(putty_context | bash_context))
noSpaceNoCaps = Mimic("\\no-caps-on") + Mimic("\\no-space-on")
 
rules = MappingRule(
    name = "bash",

src/c/o/code-by-voice-HEAD/macros/_jade.py   code-by-voice(Download)
from dragonfly import (Grammar, AppContext, MappingRule, Dictation, Key, Text, Integer, Mimic)
 
context = AppContext(title = "jade")
grammar = Grammar("jade", context=context)
noSpaceNoCaps = Mimic("\\no-caps-on") + Mimic("\\no-space-on")
 
rules = MappingRule(
    name = "jade",

src/c/o/code-by-voice-HEAD/macros/_nerdtree.py   code-by-voice(Download)
from dragonfly import (Grammar, AppContext, MappingRule, Dictation, Key, Text, Integer, Mimic)
context = AppContext(title="nerdtree")
grammar = Grammar("nerdtree", context=context)
noSpaceNoCaps = Mimic("\\no-caps-on") + Mimic("\\no-space-on")
rules = MappingRule(
    name = "nerdtree",

src/c/o/code-by-voice-HEAD/macros/_chrome.py   code-by-voice(Download)
from dragonfly import (Grammar, AppContext, MappingRule, Dictation, Key, Text, Integer, Mimic)
 
context = AppContext(executable="chrome")
grammar = Grammar("chrome", context=context)
noSpaceNoCaps = Mimic("\\no-caps-on") + Mimic("\\no-space-on")
 
rules = MappingRule(
    name = "chrome",

src/c/o/code-by-voice-HEAD/macros/_less.py   code-by-voice(Download)
from dragonfly import (Grammar, AppContext, MappingRule, Dictation, Key, Text, Integer, Mimic)
 
context = AppContext(title = "less")
grammar = Grammar("less", context=context)
noSpaceNoCaps = Mimic("\\no-caps-on") + Mimic("\\no-space-on")
 
rules = MappingRule(
    name = "less",

src/c/o/code-by-voice-HEAD/macros/_buffergator.py   code-by-voice(Download)
from dragonfly import (Grammar, AppContext, MappingRule, Dictation, Key, Text, Integer, Mimic)
context = AppContext(title="buffergator")
grammar = Grammar("buffergator", context=context)
noSpaceNoCaps = Mimic("\\no-caps-on") + Mimic("\\no-space-on")
rules = MappingRule(
    name = "buffergator",

  1 | 2 | 3 | 4 | 5 | 6  Next