| Ticket UUID: | 1597840 | |||
| Title: | Infinite loop when using ScrolledFrame | |||
| Type: | Bug | Version: | None | |
| Submitter: | tombert | Created on: | 2006-11-16 16:47:54 | |
| Subsystem: | tklib :: tablelist | Assigned To: | nemethi | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2006-11-19 17:53:41 | |
| Resolution: | None | Closed By: | nemethi | |
| Closed on: | 2006-11-19 10:53:41 | |||
| Description: |
A tablelist in an iWidgets::Scrolledframe fails - looks like an infinite loop. I'am using ActiveState distribution 8.4.13 with tklib 0.4 on Win XP. Sample code appended. Call 'create' two times - dont know why it hangs on the second time - in my bigger application it hangs up immediately. thx | |||
| User Comments: |
nemethi added on 2006-11-17 04:13:22:
Logged In: YES
user_id=317958
Originator: NO
This problem is not Tablelist-specific. Replace the tablelist with another widget, e.g., a Tk listbox or text widget, and you will see exactly the same behavior.
I am no [incr Tk] expert, but apparently it is the
itk_component add table {
tablelist::tablelist $itk_component(sf).table
} {}
command in your script that causes the trouble (probably because $itk_component(sf) is a scrolledframe widget). Replace it with
set cs [$itk_component(sf) childsite]
tablelist::tablelist $cs.table
and update the pack command accordingly. After these changes, the script will work as expected.
tombert added on 2006-11-16 23:47:54: File Added - 203141: crash4.zip | |||
Attachments:
- crash4.zip [download] added by tombert on 2006-11-16 23:47:54. [details]
