!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/share/pyshared/colorblind/   drwxr-xr-x
Free 130.02 GB of 142.11 GB (91.49%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Keybinder.py (1.95 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
import gtk, gobject, gconf
import colorblind, colorblind.keybinder

class Keybinder(gobject.GObject):
    __gsignals__ = {
        "activated" : (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, []),
        # When the keybinding changes, passes a boolean indicating wether the keybinding is successful
        "changed" : (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, [gobject.TYPE_BOOLEAN]),
    }

    def __init__(self, keybinding):
        gobject.GObject.__init__(self)
        
        self.bound = False
        self.prevbinding = None
        
        # Set and retreive global keybinding from gconf
        self.keybinding = colorblind.GCONF_CLIENT.get_string(keybinding)
        colorblind.GCONF_CLIENT.notify_add(keybinding, lambda x, y, z, a: self.on_config_keybinding(z.value))
        
        self.bind()
        
    def on_config_keybinding(self, value=None):
        if value != None and value.type == gconf.VALUE_STRING:
            self.prevbinding = self.keybinding
            self.keybinding = value.get_string()
            self.bind()

    def on_keyboard_shortcut(self):
        print "Keyboard shortcut"
        self.emit ("activated")
    
    def bind(self):
        if self.bound:
            self.unbind()
            
        try:
            print 'Binding Global shortcut %s to focus the colorblind' % self.keybinding
            colorblind.keybinder.tomboy_keybinder_bind(self.keybinding, self.on_keyboard_shortcut)
            self.bound = True
        except (KeyError, TypeError):
            # if the requested keybinding conflicts with an existing one, a KeyError will be thrown
            self.bound = False
        
        self.emit('changed', self.bound)
                    
    def unbind(self):
        try:
            colorblind.keybinder.tomboy_keybinder_unbind(self.prevbinding)
            self.bound = False
        except KeyError:
            # if the requested keybinding is not bound, a KeyError will be thrown
            pass

if gtk.pygtk_version < (2,8,0):
    gobject.type_register(Keybinder)

keybinder_on_off = Keybinder(colorblind.GCONF_KEYBINDING_ONOFF)
keybinder_switch = Keybinder(colorblind.GCONF_KEYBINDING_SWITCH)
def get_colorblind_keybinder_on_off():
    return keybinder_on_off

def get_colorblind_keybinder_switch():
    return keybinder_switch

:: 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.0167 ]--