[Bug 2036760] [NEW] tcl/tk BWidget ProgressDlg does not open correctly
Fredrik Bennison
2036760 at bugs.launchpad.net
Wed Sep 20 14:46:04 UTC 2023
Public bug reported:
There is an issue with opening BWidget ProgressDlg when running Ubuntu
23.04. The problem is not present in Ubuntu 22.04.
Ubuntu release:
sysop at vb2304:~$ lsb_release -rd
No LSB modules are available.
Description: Ubuntu 23.04
Release: 23.04
Package version:
sysop at vb2304:~$ apt-cache policy tk8.6
tk8.6:
Installed: 8.6.13-2
To reproduce:
Install new Ubuntu 23.04 and install bwidget package with 'apt install
bwidget'-
Create a tcl file with this content:
=====================
package require Tk
package require BWidget
variable value
variable txtvar
ProgressDlg .p -type normal -variable value -maximum 100 -title "Titel"
-textvariable txtvar
set txtvar "Test text"
set value 1
puts [info patchlevel]
while {$value < 100 } {
set value [expr {$value + 1}]
puts "value is $value"
exec sleep 0.1
}
=====================
Run the file with:
wish test.tcl
Expected result: A progress bar appears counting filling up from 1 to
100. Test printout in shell window:
8.6.13
value is 2
value is 3
value is 4
....
This happens when running the same file in Ubuntu 22.04.
What happens instead:
Wish window appears, but no progress bar dialog. When closing the wish
window the follow appears in the shell window:
sysop at vb2304:~$ wish test.tcl
Error in startup script: window ".p" was deleted before its visibility changed
while executing
"tkwait visibility $path"
(procedure "Dialog::draw" line 57)
invoked from within
"Dialog::draw $path"
(procedure "::ProgressDlg::create" line 26)
invoked from within
"ProgressDlg .p -type normal -variable value -maximum 100 -title "Titel" -textvariable txtvar"
(file "test.tcl" line 7)
Occasionally the first run of 'wish test.tcl' works but not subsequent calls.
** Affects: tk8.6 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to tk8.6 in Ubuntu.
https://bugs.launchpad.net/bugs/2036760
Title:
tcl/tk BWidget ProgressDlg does not open correctly
Status in tk8.6 package in Ubuntu:
New
Bug description:
There is an issue with opening BWidget ProgressDlg when running Ubuntu
23.04. The problem is not present in Ubuntu 22.04.
Ubuntu release:
sysop at vb2304:~$ lsb_release -rd
No LSB modules are available.
Description: Ubuntu 23.04
Release: 23.04
Package version:
sysop at vb2304:~$ apt-cache policy tk8.6
tk8.6:
Installed: 8.6.13-2
To reproduce:
Install new Ubuntu 23.04 and install bwidget package with 'apt install
bwidget'-
Create a tcl file with this content:
=====================
package require Tk
package require BWidget
variable value
variable txtvar
ProgressDlg .p -type normal -variable value -maximum 100 -title
"Titel" -textvariable txtvar
set txtvar "Test text"
set value 1
puts [info patchlevel]
while {$value < 100 } {
set value [expr {$value + 1}]
puts "value is $value"
exec sleep 0.1
}
=====================
Run the file with:
wish test.tcl
Expected result: A progress bar appears counting filling up from 1
to 100. Test printout in shell window:
8.6.13
value is 2
value is 3
value is 4
....
This happens when running the same file in Ubuntu 22.04.
What happens instead:
Wish window appears, but no progress bar dialog. When closing the
wish window the follow appears in the shell window:
sysop at vb2304:~$ wish test.tcl
Error in startup script: window ".p" was deleted before its visibility changed
while executing
"tkwait visibility $path"
(procedure "Dialog::draw" line 57)
invoked from within
"Dialog::draw $path"
(procedure "::ProgressDlg::create" line 26)
invoked from within
"ProgressDlg .p -type normal -variable value -maximum 100 -title "Titel" -textvariable txtvar"
(file "test.tcl" line 7)
Occasionally the first run of 'wish test.tcl' works but not subsequent calls.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tk8.6/+bug/2036760/+subscriptions
More information about the foundations-bugs
mailing list