| Ticket UUID: | 3441086 | |||
| Title: | ttk::style layout with empty -children silently disappears | |||
| Type: | Bug | Version: | obsolete: 8.5.10 | |
| Submitter: | tombert | Created on: | 2011-11-22 12:39:42 | |
| Subsystem: | 88. Themed Tk | Assigned To: | fvogel | |
| Priority: | 5 Medium | Severity: | Minor | |
| Status: | Closed | Last Modified: | 2018-09-02 15:41:21 | |
| Resolution: | Fixed | Closed By: | fvogel | |
| Closed on: | 2018-09-02 15:41:21 | |||
| Description: |
Environment Window XP, MinSys compiled TclTk 8.5.11, Theme winnative;
proc childerr {} {
toplevel .t
ttk::style layout Test.Tentry {Entry.field -sticky nswe -border 0 -children {Entry.padding -sticky nswe -children {Entry.textarea -sticky nswe}}}
ttk::entry .t.e -style Test.TEntry
pack .t.e -fill x -expand yes
puts a
ttk::style layout Test.Tentry {Entry.field -sticky nswe -border 0 -children {Entry.padding -sticky nswe -children {}}}
puts b
}
The procedure gets executed without error but "b" is not printed and the widgets appearance does not update. At least it looks like the interpreter stays healthy as there are no symptoms of high cpu load etc....
The more major problem is that the code after the ttk:style never gets executed.
thx
| |||
| User Comments: |
fvogel added on 2018-09-02 15:41:21:
Merged to core-8-6-branch and trunk fvogel added on 2018-08-26 20:10:26: "Added test layout-2 testing the correct return of an error when -children {} is given in ttk::style layout, see [057dc9dc94]. fvogel added on 2018-08-24 21:58:42: False alarm, I don't see other similar cases that should be fixed in Ttk_ParseLayoutTemplate(). Ttk_GetStickyFromObj() and Tcl_GetBooleanFromObj() already do proper error reporting. fvogel added on 2018-08-24 21:46:12: The empty children is correctly detected and dealt with. TCL_ERROR is raised, which prevents "puts b" from being executed, as expected. What was missing is the interp result, which was not set. Proposed fix: [a76cb88eb2] Looking at the code in Ttk_ParseLayoutTemplate() there are several similar cases that should be fixed. tombert added on 2012-04-10 15:48:59: retested, still valid | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki