| Ticket UUID: | 742773 | |||
| Title: | 10,000 widgets leaves some undisplayed | |||
| Type: | Bug | Version: | obsolete: 8.4.3 | |
| Submitter: | edemaine | Created on: | 2003-05-24 16:47:24 | |
| Subsystem: | 48. Geometry Management | Assigned To: | chengyemao | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Open | Last Modified: | 2007-07-15 04:10:59 | |
| Resolution: | None | Closed By: | ||
| Closed on: | ||||
| Description: |
This may be a Windows-specific bug. Consider the
following two scripts:
GRID VERSION: (warning: slow)
for {set i 0} {$i < 80} {incr i} {
for {set j 0} {$j < 125} {incr j} {
frame .x${i}y${j} -width 5 -height 5 -background red
grid .x${i}y${j} -row $i -column $j -padx 1 -pady 1
}
}
PACK VERSION:
for {set i 0} {$i < 80} {incr i} {
frame .x$i
for {set j 0} {$j < 125} {incr j} {
frame .x${i}.y${j} -width 5 -height 5 -background red
pack .x${i}.y${j} -side right -padx 1
}
pack .x$i -side bottom -pady 1
}
On both ActiveTcl 8.4.3 and the Cygwin's Tcl/Tk 8.4.x
build, these scripts leave some of the last
(upper-left) frames undisplayed on my Windows box
(Pentium III 1.2GHz with 640 MB of RAM). These frames
seem to be mapping to the upper-left corner of the
screen (not the window!). See the attached screenshot.
There may be a memory-related issue here, but it seems
reproducible by several people on #tcl.
The same behavior occurs with buttons instead of
frames; it's just easier to make frames small.
As a side note, the grid version of the code is
excessively slow, and can take a minute or more to
display. See bug 220200.
| |||
| User Comments: |
kjnash added on 2007-07-15 04:10:59:
Logged In: YES user_id=991282 Originator: NO On Linux, with 8.5a6 or 8.4.14, the pack and grid versions are both rendered correctly. edemaine added on 2003-05-24 23:47:24: File Added - 51176: test_screen.png | |||
Attachments:
- test_screen.png [download] added by chrstphrchvz on 2019-03-30 16:11:11. [details]
