403Webshell
Server IP : 45.40.142.9  /  Your IP : 216.73.216.250
Web Server : Apache
System : Linux s45-40-142-9.secureserver.net 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : bayspec ( 506)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib64/python2.6/site-packages/modulator/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib64/python2.6/site-packages/modulator/ScrolledListbox.py
# A ScrolledList widget feels like a list widget but also has a
# vertical scroll bar on its right.  (Later, options may be added to
# add a horizontal bar as well, to make the bars disappear
# automatically when not needed, to move them to the other side of the
# window, etc.)
#
# Configuration options are passed to the List widget.
# A Frame widget is inserted between the master and the list, to hold
# the Scrollbar widget.
# Most methods calls are inherited from the List widget; Pack methods
# are redirected to the Frame widget however.

from Tkinter import *
from Tkinter import _cnfmerge

class ScrolledListbox(Listbox):
    def __init__(self, master=None, cnf={}):
        cnf = _cnfmerge(cnf)
        fcnf = {}
        vcnf = {'name': 'vbar',
            Pack: {'side': 'right', 'fill': 'y'},}
        for k in cnf.keys():
            if type(k) == ClassType or k == 'name':
                fcnf[k] = cnf[k]
                del cnf[k]
        self.frame = Frame(master, fcnf)
        self.vbar = Scrollbar(self.frame, vcnf)
        cnf[Pack] = {'side': 'left', 'fill': 'both', 'expand': 'yes'}
        cnf['name'] = 'list'
        Listbox.__init__(self, self.frame, cnf)
        self['yscrollcommand'] = (self.vbar, 'set')
        self.vbar['command'] = (self, 'yview')

        # Copy Pack methods of self.frame -- hack!
        for m in Pack.__dict__.keys():
            if m[0] != '_' and m != 'config':
                setattr(self, m, getattr(self.frame, m))

Youez - 2016 - github.com/yon3zu
LinuXploit