View Ticket
Not logged in
Ticket Hash: 9dac574a915aae8b3b0509e803172a6ebc9219a3
Title: tkpath items should accept empty value for option -state
Status: Closed Type: Code_Defect
Severity: Important Priority: Medium
Subsystem: Resolution: Open
Last Modified: 2019-10-11 18:57:36
Version Found In: 0.3.3
User Comments:
anonymous added on 2019-03-30 00:32:46:
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'. Is there a reason for this difference?

Empty -state values are of particular interest when dealing with tkpath items, because they could allow working in 'layers', using tkpath'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.

dzach

anonymous added on 2019-04-13 15:22:35:
I submitted a tiket about this to the Tk development team, for TIP-510:

https://core.tcl.tk/tk/tktview/1bf4876729c99bc3bfb730e6fb56bd1885671809

chw added on 2019-10-11 18:57:36:
Closing this ticket for now and waiting for further TIP-510 development.