def __init__(self, spec=None, search=None, static=False):
     DynStrActionBase.__init__(
         self, spec=str(spec), static=(spec is None))
     if not search:
         self.search = 'any'
     else:
         self.search = str(search)
Exemple #2
0
 def __init__(self, spec, static=False, space=True,
              title=False, upper=False, lower=False, camel=False):
     DynStrActionBase.__init__(self, spec=str(spec), static=static)
     self.space = space
     self.title = title
     self.upper = upper
     self.lower = lower
     self.camel = camel
    def __init__(self, spec=None, static=False):
        """
            Arguments:
             - *spec* (*str*) -- the mouse actions to execute
             - *static* (boolean) --
               if *True*, do not dynamically interpret *spec*
               when executing this action

        """
        DynStrActionBase.__init__(self, spec=spec, static=static)
Exemple #4
0
 def __init__(self, contents, format=None, paste=None, static=False):
     if not format: format = self._default_format
     if not paste: paste = self._default_paste
     if isinstance(contents, basestring):
         spec = contents
         self.contents = None
     else:
         spec = ""
         self.contents = contents
     self.format = format
     self.paste = paste
     DynStrActionBase.__init__(self, spec, static=static)
 def __init__(self, contents, format=None, paste=None, static=False):
     if not format: format = self._default_format
     if not paste: paste = self._default_paste
     if isinstance(contents, basestring):
         spec = contents
         self.contents = None
     else:
         spec = ""
         self.contents = contents
     self.format = format
     self.paste = paste
     DynStrActionBase.__init__(self, spec, static=static)
 def __init__(self, contents, format=None, paste=None, static=False):
     if not format:
         format = self._default_format
     if paste is None:
         # Pass use_hardware=True to guarantee that Ctrl+V is always
         # pressed, regardless of the keyboard layout.
         paste = Key(self._default_paste_spec, use_hardware=True)
     if isinstance(contents, string_types):
         spec = contents
         self.contents = None
     else:
         spec = ""
         self.contents = contents
     self.format = format
     self.paste = paste
     DynStrActionBase.__init__(self, spec, static=static)
Exemple #7
0
 def __init__(self, spec=None, static=False, pause=_pause_default, autofmt=False):
     self._pause = pause
     self._autofmt = autofmt
     DynStrActionBase.__init__(self, spec=spec, static=static)
Exemple #8
0
 def __init__(self, spec, static = False, forget = False):
     DynStrActionBase.__init__(self, spec = str(spec), static = static)
     self.search = 'id'
     self.forget =  forget
 def __init__(self, spec=None, static=False, pause=_pause_default,
              autofmt=False):
     self._pause = pause
     self._autofmt = autofmt
     DynStrActionBase.__init__(self, spec=spec, static=static)