!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.16 (Debian). PHP/5.3.3-7+squeeze19 

uname -a: Linux mail.tri-specialutilitydistrict.com 2.6.32-5-amd64 #1 SMP Tue May 13 16:34:35 UTC
2014 x86_64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/lib/pymodules/python2.6/orca/scripts/apps/Banshee/   drwxr-xr-x
Free 129.71 GB of 142.11 GB (91.27%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     script.py (2.23 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
import orca.default as default
import orca.orca_state as orca_state
import pyatspi

from speech_generator import SpeechGenerator
from formatting import Formatting

class Script(default.Script):

    def __init__(self, app):
        """Creates a new script for the given application.

        Arguments:
        - app: the application to create a script for.
        """
        default.Script.__init__(self, app)
        self._last_seek_value = 0


    def getSpeechGenerator(self):
        """Returns the speech generator for this script.
        """
        return SpeechGenerator(self)

    def getFormatting(self):
        """Returns the formatting strings for this script."""
        return Formatting(self)

    def _formatDuration(self, s):
        seconds = '%02d' % (s%60)
        minutes = '%02d' % (s/60)
        hours = '%02d' % (s/3600)
        
        duration = [minutes, seconds]
        
        if hours != '00':
            duration.insert(0, hours)

        return ':'.join(duration)

    def _isSeekSlider(self, obj):
        return bool(pyatspi.findAncestor(
                obj, lambda x: x.getRole() == pyatspi.ROLE_TOOL_BAR))

    def visualAppearanceChanged(self, event, obj):
        if event.type == 'object:property-change:accessible-value' and \
                self._isSeekSlider(obj):
            try:
                value = obj.queryValue()
            except NotImplementedError:
                return default.Script.getTextForValue(self, obj)

            current_value = int(value.currentValue)/1000

            if current_value in \
                    range(self._last_seek_value, self._last_seek_value + 4):
                if self.isSameObject(obj, orca_state.locusOfFocus):
                    self.updateBraille(obj)
                return

            self._last_seek_value = current_value

        default.Script.visualAppearanceChanged(self, event, obj)
            

    def getTextForValue(self, obj):
        if not self._isSeekSlider(obj):
            return default.Script.getTextForValue(self, obj)

        try:
            value = obj.queryValue()
        except NotImplementedError:
            return default.Script.getTextForValue(self, obj)
        else:
            return self._formatDuration(int(value.currentValue)/1000)

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0084 ]--