• Guido van Rossum's avatar
    SF patch #491183 (Jeff Epler): ScrolledText.grid() doesn't work · 61d3637f
    Guido van Rossum yazdı
    Using grid methods on ScrolledText widgets does not
    work as expected. It either fails to pack a widget, or
    can even cause Tk to lock up.
    
    The problem is that the .grid method is being called on
    the text widget, not the frame widget. This can lead
    to the well-known lockup in Tk when a frame's children
    are managed by both the pack and grid managers. Even
    if it doesn't lock up, the frame is never placed within
    the intended widget.
    
    Program fragment:
    >>> import ScrolledText
    >>> s = ScrolledText.ScrolledText()
    >>> s.grid(row=0, column=0, rowspan=2)
    
    The following patch uses the same hack to copy the
    'grid' and 'place' geometry manager methods to the
    ScrolledText instance as is already used for the 'pack'
    manager.
    61d3637f
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
PLAN.txt Loading commit data...
README Loading commit data...
acconfig.h Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...