mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
Corrected problem caused by adding a scrollbar to the parameters
window in the toolkit, which was to the "tkwait" command, which waits for a change in state. What was intended was to wait for a change in state to visible only; once visible, the "tkwait" command should not invoked or else the process will block.
This commit is contained in:
+3
-1
@@ -1443,7 +1443,9 @@ proc magic::gencell_dialog {instname gencell_type library parameters} {
|
||||
raise .params
|
||||
|
||||
# Wait for window to become visible to set the scroll region
|
||||
tkwait visibility .params.body.area
|
||||
if {[catch {winfo children .params.body.area}]} {
|
||||
tkwait visibility .params.body.area
|
||||
}
|
||||
.params.body.area config -scrollregion [.params.body.area bbox all]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user