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


Viewing file:     LingeringSelectionWindow.py (1.59 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
import gtk
import glib

class LingeringSelectionWindow (gtk.Window):
    """
    Leave an imprint on the screen of the selected row in a treeview
    when it is activated.
    This is mainly used when the window containing the treeview is
    hidden on the same activation.
    """
    def __init__ (self, view):
        """
        Just create the LingeringSelectionWindow passing the treeview
        to manage in the constructor and everything will be taken care of.
        """
        gtk.Window.__init__ (self, gtk.WINDOW_POPUP)
        
        self.linger_time = 1 # Linger for one second
        
        self.set_focus_on_map (False)
                
        view.connect ("row-activated", self._on_view_activated)
        
    def _on_view_activated (self, view, path, column):
        # Check if this row has children, if it does
        # do nothing
        model = view.get_model()
        if model.iter_has_child (model.get_iter(path)) :
            "linger block"
            return
            
        pixmap = view.create_row_drag_icon (path)
        if pixmap == None:
            self.hide()
            return
            
        image = gtk.Image()
        image.set_from_pixmap (pixmap, None)
        
        if self.get_child() :
            self.remove (self.get_child())
            
        self.add (image)
        self._update_position (view, path, column)
        self._linger ()
        
    def _update_position (self, view, path, column):
        """
        Move the window to the activated paths position
        """
        ox, oy = view.window.get_origin ()
        area = view.get_background_area (path, column)
        x, y = view.tree_to_widget_coords (area.x, area.y)
        self.move (x + ox, area.y + oy)
        self.resize (area.width, area.height)
        
    def _linger (self):
        """
        Display for a short while
        """
        self.show_all ()
        glib.timeout_add_seconds (self.linger_time, self.hide)
            

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