Changeset 1836 for trunk


Ignore:
Timestamp:
Jul 20, 2010, 2:32:49 PM (14 years ago)
Author:
gah
Message:

add -tkwait flag to molvisviewer addmethod

Location:
trunk/gui/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/molvisviewer.tcl

    r1832 r1836  
    945945    if { $flush } {
    946946        SendCmd "bmp";                  # Flush the results.
    947         set _waitForImage 1
    948947    }
    949948    set _buffering 0;                   # Turn off buffering.
     
    957956    blt::busy release $itk_component(hull)
    958957
    959     if { $_waitForImage } {
    960         tkwait variable [itcl::scope _waitForImage]
    961     }
    962958    debug "exiting rebuild"
    963959}
     
    14171413        -description    ""
    14181414        -param          ""
     1415        -tkwait         no
    14191416    }
    14201417
     
    14541451        }
    14551452    }
    1456     # In a sequence there will be multiple calls to the "add" method.  Run
    1457     # "update" here to let the fileevent handler catch up with images,
    1458     # regardless of the speed setting in the sequence.
    1459     update
     1453    if { $params(-tkwait) } {
     1454        # In a sequence there will be multiple calls to the "add" method.  Run
     1455        # "tkwait" here to let the fileevent handler catch up with images,
     1456        # regardless of the speed setting in the sequence.
     1457        set _waitForImage 1
     1458        tkwait variable [itcl::scope _waitForImage]
     1459    }
    14601460}
    14611461
  • trunk/gui/scripts/sequenceresult.tcl

    r1750 r1836  
    567567    $itk_component(eleLabel) configure -text "[$_topmost label $_pos]"
    568568    foreach dataobj [$_topmost value $_pos] {
    569         set settings "-color autoreset -width 2"
    570         if { [catch {$dataobj hints style} style] == 0} {
     569        set settings "-color autoreset -width 2 -tkwait yes"
     570        if {[catch {$dataobj hints style} style] == 0} {
    571571            eval lappend settings $style
    572572        }
Note: See TracChangeset for help on using the changeset viewer.