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

All Samples(502)  |  Call(474)  |  Derive(0)  |  Import(28)

src/d/r/dragonfly-0.6.5/dragonfly/examples/outlook_example.py   dragonfly(Download)
"""
 
from dragonfly import (Grammar, AppContext, MappingRule, Choice,
                       Key, Text, Pause)
 
    name="static",
    mapping={
             "new folder":                   Key("cs-e"),
             "new email":                    Key("cs-m"),
             "new appointment":              Key("cs-a"),
             "new meeting request":          Key("cs-q"),

src/d/r/dragonfly-0.6.5/dragonfly/examples/notepad_example.py   dragonfly(Download)
"""
 
from dragonfly import (Grammar, AppContext, MappingRule, Dictation,
                       Key, Text)
 
    name="example",    # The name of the rule.
    mapping={          # The mapping dict: spec -> action.
             "save [file]":            Key("c-s"),
             "save [file] as":         Key("a-f, a"),
             "save [file] as <text>":  Key("a-f, a/20") + Text("%(text)s"),
             "find <text>":            Key("c-f/20") + Text("%(text)s\n"),

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))
 
    name = "vim",
    mapping = {
      "north [by] [<n>]"            : Key("escape, c-k:%(n)d"),
      "south [by] [<n>]"            : Key("escape, c-j:%(n)d"),
      "east [by] [<n>]"             : Key("escape, c-l:%(n)d"),
      "west [by] [<n>]"             : Key("escape, c-h:%(n)d"),

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))
    name = "bash",
    mapping = {
      "term <n>": Key('c-b') + Text("%(n)d"),
      "term create": Key('c-b, c'),
      "term north": Key('c-b, k'),
      "term south": Key('c-b, j'),

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")
    mapping = {
    "smear"                : Text("err"),
    "function"             : Text("fn") + Key("tab") + noSpaceNoCaps,
    "very equal"           : Text("var_equal") + Key("tab") + noSpaceNoCaps,
    "very"                 : Text("var") + Key("tab") + noSpaceNoCaps,
    "require J query"      : Text("req_jquery") + Key("tab"),

src/a/e/aenea-HEAD/grammars_available/multiedit.py   aenea(Download)
  pass
 
from dragonfly import (
    Alternative,
    AppContext,
def Nested(command):
  return Text(command) + Key("left:%i" % (len(command) / 2))
 
command_table = {
  # Spoken-form        normal command              VIM (None if same)
 
  #### Cursor manipulation
  "up [<n>]":(         Key("up:%(n)d"),            Key("escape") + Text("%(n)dki") ),
  "down [<n>]":(       Key("down:%(n)d"),          Key("escape") + Text("%(n)dji") ),

src/c/o/code-by-voice-HEAD/macros/_globals.py   code-by-voice(Download)
from dragonfly import (Grammar, FocusWindow, MappingRule, Key, Config, Section, Item, Playback, Mimic)
 
rules = MappingRule(
	name = "general",
	mapping = { 
		"slap": Key("enter"),
		"Max when": Key("w-up"),
		"left when": Key("w-left"),
		"right when": Key("w-right"),

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",
    mapping = {
      "split": Key("i"),
      "vertical": Key("s"),
      "add": noSpaceNoCaps + Key("m, a") + noSpaceNoCaps + Key('backspace'),

src/a/e/aenea-HEAD/grammars_available/chromium.py   aenea(Download)
from dragonfly import (AppContext, Grammar, Dictation, IntegerRef, MappingRule,
                       Key, Text, IntegerRef, Dictation)
 
import aenea
import config
class ChromiumRule(MappingRule):
  mapping = {
      "close [<n>] ( frame | frames )":         Key("c-w:%(n)d"),
      "open frame":                             Key("c-t"),
      "open window":                            Key("c-n"),
      "reopen [<n>] ( frame | frames )":        Key("cs-t:%(n)d"),

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",
    mapping = {
      "edit": Key("w-a"),
    mapping = {
      "edit": Key("w-a"),
      "reload" : Key("f5"),
      "open": Key("escape, o"),
      "jump": Key("f"),

  1 | 2 | 3  Next