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

All Samples(99)  |  Call(57)  |  Derive(0)  |  Import(42)

src/d/a/damselfly-HEAD/_Damselfly-example.py   damselfly(Download)
import re
 
from dragonfly import (Grammar, Rule, MappingRule, CompoundRule,
                       Dictation, IntegerRef, Context, ActionBase)
 
        }
    extras = [
        Dictation("text")
        ]
 
        }
    extras = [
        Dictation("text")
        ]
 
        }
    extras = [
        Dictation("text"),
        ]
 
    extras = [
        IntegerRef("n", 1, 20),
        Dictation("text"),
        Dictation("other"),
        ]

src/d/r/dragonfly-0.6.5/dragonfly/examples/notepad_example.py   dragonfly(Download)
"""
 
from dragonfly import (Grammar, AppContext, MappingRule, Dictation,
                       Key, Text)
 
            },
    extras=[           # Special elements in the specs of the mapping.
            Dictation("text"),
           ],
    )

src/d/r/dragonfly-0.6.5/dragonfly/examples/_fruit_toggle.py   dragonfly(Download)
"""
 
from dragonfly import (Grammar, CompoundRule, Dictation)
 
 
class AppleRule(CompoundRule):
    spec = "I like apples [<text>]"
    extras = [Dictation("text")]
    def _process_recognition(self, node, extras):
        print "I like apples!  (%s)" % extras.get("text", "")
class BananaRule(CompoundRule):
    spec = "I like bananas [<text>]"
    extras = [Dictation("text")]
    def _process_recognition(self, node, extras):
        print "I like bananas!  (%s)" % extras.get("text", "")

src/d/r/dragonfly-0.6.5/dragonfly/examples/notepad_foodgroups.py   dragonfly(Download)
"""
 
from dragonfly import (Grammar, AppContext, CompoundRule, Choice, Dictation)
 
 
              Choice("time", time),
              Choice("food", food),
              Dictation("opinion"),
             ]
 

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(
 
    extras = [
        Dictation("text", format=False),
        Integer("n", 1, 20000),
      ],

src/c/o/code-by-voice-HEAD/macros/_password.py   code-by-voice(Download)
# This macro will copy your password from "Password Safe", provided that the application
# is in the 8th position on your taskbar
from dragonfly import (Grammar, MappingRule, Key, Config, Section, Item, Text, Dictation)
from dragonfly.windows.clipboard import Clipboard
 
 
  extras = [
      Dictation("text", format=False),
      ]
 

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))
 
 
    extras = [
        Dictation("text", format=False),
        Dictation("mark", format=False),
        Integer("n", 1, 20000),

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(
 
    extras = [
        Dictation("text", format=False),
        Integer("n", 1, 20000),
      ],

src/c/o/code-by-voice-HEAD/macros/_ctrlp.py   code-by-voice(Download)
from dragonfly import (Grammar, AppContext, MappingRule, Dictation, Key, Text, Integer)
ctlp = AppContext(title="ControlP")
grammar = Grammar("ctlp", context=ctlp)
 
rules = MappingRule(
 
    extras = [
        Dictation("text", format=False),
        Integer("n", 1, 20000),
      ],

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")
 
    extras = [
        Dictation("text", format=False),
        Integer("n", 1, 20000),
      ],

  1 | 2 | 3 | 4 | 5  Next