Tk Source Code

View Ticket
Login
Ticket UUID: 1bf4876729c99bc3bfb730e6fb56bd1885671809
Title: path items should accept empty value for option -state
Type: Bug Version: development, tip-510
Submitter: anonymous Created on: 2019-04-13 15:17:39
Subsystem: -- New Widgets Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2019-04-15 11:21:37
Resolution: None Closed By: nobody
    Closed on:
Description:
The following refer to the new "path" widget under development, TIP-510, and the
existing tkpath implementation.
--------------------------------
Tkpath canvas items do not accept an empty value for option -state. 
However, _Tk_ canvas items _do_ accept empty values in their -state option,
which appears to work identical to state 'normal'.

Empty -state values are of particular interest when dealing with the new path items, 
because they could allow working in 'layers', using path's 'group' items. By allowing 
the -state options of items in a group to be empty, the visibility for all the items 
of that group can be controlled by the visibility state of their parent. As it stands 
now, an individual item's -state value, which cannot be empty, overrides its parent's 
state at all times.

dzach