Re: [Incrtcl-users] Update embedded in Iwidgets -- what to do?
by Wart other posts by this author
Jul 7 2006 8:05AM messages near this date
Re: [Incrtcl-users] Update embedded in Iwidgets -- what to do?
|
[Incrtcl-users] how to bind file changes
You could rename 'update' to a custom command that does nothing:
proc myUpdate {args} {
# do nothing
}
rename update oldUpdate
rename myUpdate update
However... This is probably not a good thing to do. AFAIK, many of the
iwidgets call 'update' to force UI changes to take effect right away.
They do this so that it can get resize some of the internal widgets
correctly. While your application might speed up if you remove the
calls to 'update', I suspect that you'll notice that the iwidgets don't
all get drawn correctly.
--Mike
Bob Binder wrote:
> We've decided to remove all "update" commands from our Tk app, as they routinely hang our
app.
>
> Iwidgets has many embedded uses of update, which also lead to update hangs:
>
> "C:\Tcl\lib\iwidgets4.0.2\scripts\shell.itk"(250,5): update idletasks
> "C:\Tcl\lib\iwidgets4.0.2\scripts\shell.itk"(343,5): update idletasks
> "C:\Tcl\lib\iwidgets4.0.2\scripts\tabset.itk"(1920,5): update idletasks
> "C:\Tcl\lib\iwidgets4.0.2\scripts\tabset.itk"(1990,5): update idletasks
> "C:\Tcl\lib\iwidgets4.0.2\scripts\buttonbox.itk"(278,5): update idletasks
> "C:\Tcl\lib\iwidgets4.0.2\scripts\buttonbox.itk"(470,2): update idletasks
> "C:\Tcl\lib\iwidgets4.0.2\scripts\canvasprintbox.itk"(864,4): update
> "C:\Tcl\lib\iwidgets4.0.2\scripts\combobox.itk"(1142,5): update
> "C:\Tcl\lib\iwidgets4.0.2\scripts\extbutton.itk"(235,3): update idletasks
> "C:\Tcl\lib\iwidgets4.0.2\scripts\extbutton.itk"(388,3): update idletasks
> "C:\Tcl\lib\iwidgets4.0.2\scripts\extbutton.itk"(390,40): after 50; config -background $o
ldbg; update idletasks
> "C:\Tcl\lib\iwidgets4.0.2\scripts\extbutton.itk"(391,64): after 50; config -background $i
tk_option(-activebackground); update
> idletasks
> "C:\Tcl\lib\iwidgets4.0.2\scripts\extfileselectionbox.itk"(244,41): # When idle, pack t
he childsite and update the lists.
> "C:\Tcl\lib\iwidgets4.0.2\scripts\feedback.itk"(177,5): update idletasks
> "C:\Tcl\lib\iwidgets4.0.2\scripts\feedback.itk"(187,5): update
> "C:\Tcl\lib\iwidgets4.0.2\scripts\hierarchy.itk"(1018,9): update
> "C:\Tcl\lib\iwidgets4.0.2\scripts\hierarchy.itk"(1065,2): update
> "C:\Tcl\lib\iwidgets4.0.2\scripts\hierarchy.itk"(1174,5): update
> "C:\Tcl\lib\iwidgets4.0.2\scripts\hyperhelp.itk"(380,7): update idletasks
> "C:\Tcl\lib\iwidgets4.0.2\scripts\labeledframe.itk"(359,3): update idletasks
> "C:\Tcl\lib\iwidgets4.0.2\scripts\labeledwidget.itk"(244,5): update
> "C:\Tcl\lib\iwidgets4.0.2\scripts\panedwindow.itk"(679,5): update idletasks
> "C:\Tcl\lib\iwidgets4.0.2\scripts\scrolledcanvas.itk"(224,2): update idletasks
> "C:\Tcl\lib\iwidgets4.0.2\scripts\scrolledframe.itk"(183,2): update idletasks
> "C:\Tcl\lib\iwidgets4.0.2\scripts\scrolledhtml.itk"(143,29): itk_option define -update up
date Update 1
> "C:\Tcl\lib\iwidgets4.0.2\scripts\scrolledhtml.itk"(451,42):itcl::configbody iwidgets::Scr
olledhtml::update {
> "C:\Tcl\lib\iwidgets4.0.2\scripts\scrolledhtml.itk"(507,3): update idletasks
> "C:\Tcl\lib\iwidgets4.0.2\scripts\scrolledhtml.itk"(591,5): update idletasks
> "C:\Tcl\lib\iwidgets4.0.2\scripts\scrolledhtml.itk"(728,46): if {!$_intable && $itk_opt
ion(-update)} {update}
> "C:\Tcl\lib\iwidgets4.0.2\scripts\scrolledhtml.itk"(983,3): update idletasks
> "C:\Tcl\lib\iwidgets4.0.2\scripts\scrolledhtml.itk"(985,3): update idletasks
> "C:\Tcl\lib\iwidgets4.0.2\scripts\scrolledwidget.itk"(373,5): update idletasks
>
>
> Short of fixing all this, I don't see any alternative to pulling out all our Iwidgets -- a
major pita.
>
> Any suggestions?
>
> Tia
> Bob
>
>
>
>
>
>
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Incrtcl-users mailing list
> Incrtcl-users@[...].net
> https://lists.sourceforge.net/lists/listinfo/incrtcl-users
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Incrtcl-users mailing list
Incrtcl-users@[...].net
https://lists.sourceforge.net/lists/listinfo/incrtcl-users
Thread:
Bob Binder
Jeff Hobbs
Wart
|