From: SourceForge.net <no...@so...> - 2009-01-29 23:06:42
|
Bugs item #2546779, was opened at 2009-01-29 22:53 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=2546779&group_id=12997 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: obsolete: 8.5.2 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Christian Rapp (christianrapp) Assigned to: Nobody/Anonymous (nobody) Summary: ttk::notebook getting an error when disabling tabs. Initial Comment: When i'am disabling all displayed tabs of a notebook widget i get the following error: bad window path name "" bad window path name "" while executing "winfo viewable $w" (procedure "ttk::takesFocus" line 3) invoked from within "ttk::takesFocus $w" (procedure "ttk::focusFirst" line 2) invoked from within "ttk::focusFirst [$w select]" (procedure "ActivateTab" line 7) invoked from within "ActivateTab $w $index" (procedure "ttk::notebook::Press" line 4) invoked from within "ttk::notebook::Press .nb 32 12 " (command bound to event) I was using this code: ttk::notebook .nb ttk::frame .nb.1 ttk::frame .nb.2 grid .nb -in . -row 0 -column 0 .nb add .nb.1 -text "Test" .nb add .nb.2 -text "Test2" .nb tab .nb.1 -state disabled .nb tab .nb.2 -state disabled If one of the tabs stays enabled the error doesn't appear.: ttk::notebook .nb ttk::frame .nb.1 ttk::frame .nb.2 grid .nb -in . -row 0 -column 0 .nb add .nb.1 -text "Test" .nb add .nb.2 -text "Test2" .nb tab .nb.1 -state disabled Best regards ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=2546779&group_id=12997 |