Ticket UUID: | 1105778 | |||
Title: | ProgressDlg -stop button bug | |||
Type: | Bug | Version: | None | |
Submitter: | olaborda | Created on: | 2005-01-20 07:52:58 | |
Subsystem: | bwidget | Assigned To: | damonc | |
Priority: | 5 Medium | Severity: | ||
Status: | Closed | Last Modified: | 2006-02-11 06:23:39 | |
Resolution: | None | Closed By: | dev_null42a | |
Closed on: | 2006-02-10 23:23:39 | |||
Description: |
In V1.7.0, using ProgressDlg with -stop option, the click events for the button are not processed. This worked fine in V.1.4.1 and can be solved replacing the "update idletasks" into "update" at line 181, file progressbar.tcl, like was in V1.4.1. Example Tcl code: -------------- package require -exact BWidget 1.7.0 proc cbLdCancel {} { puts "Click" } set Progress 0 set Action "Loading files..." ProgressDlg .loading -parent . -title "Loading" -type normal \ -textvariable Action -variable Progress -maximum 20000 -stop "Cancel" \ -command cbLdCancel for {set x 0} {$x<20000} {incr x} { incr Progress } -------------- | |||
User Comments: |
dev_null42a added on 2006-02-11 05:56:27:
Logged In: YES user_id=1381097 It is the caller's job to call [update] within his loop if that is the intended behavior. Man page modified to note this. olaborda added on 2005-01-20 15:10:03: File Added - 116472: a.tcl olaborda added on 2005-01-20 15:10:02: Logged In: YES user_id=1200388 As the code example got corrupted, I upload the file now |
Attachments:
- a.tcl [download] added by olaborda on 2005-01-20 15:10:03. [details]