[Python-checkins] python/dist/src/Tools/modulator EXAMPLE.py, 1.2,
1.3 ScrolledListbox.py, 1.1, 1.2
loewis at users.sourceforge.net
loewis at users.sourceforge.net
Fri Oct 24 16:09:25 EDT 2003
Update of /cvsroot/python/python/dist/src/Tools/modulator
In directory sc8-pr-cvs1:/tmp/cvs-serv25282/Tools/modulator
Modified Files:
EXAMPLE.py ScrolledListbox.py
Log Message:
Patch #812378: Normalize white space.
Index: EXAMPLE.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/modulator/EXAMPLE.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** EXAMPLE.py 16 May 1995 13:43:09 -0000 1.2
--- EXAMPLE.py 24 Oct 2003 20:09:23 -0000 1.3
***************
*** 35,39 ****
o3.methodlist = ['method1', 'method2']
o3.funclist = ['new', 'tp_dealloc', 'tp_print', 'tp_getattr', 'tp_setattr',
! 'tp_compare', 'tp_repr', 'tp_hash']
o3.typelist = ['tp_as_sequence', 'structure']
--- 35,39 ----
o3.methodlist = ['method1', 'method2']
o3.funclist = ['new', 'tp_dealloc', 'tp_print', 'tp_getattr', 'tp_setattr',
! 'tp_compare', 'tp_repr', 'tp_hash']
o3.typelist = ['tp_as_sequence', 'structure']
Index: ScrolledListbox.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/modulator/ScrolledListbox.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ScrolledListbox.py 2 Mar 1995 14:04:25 -0000 1.1
--- ScrolledListbox.py 24 Oct 2003 20:09:23 -0000 1.2
***************
*** 15,37 ****
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))
--- 15,37 ----
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))
More information about the Python-checkins
mailing list