Changeset 1652 for branches/blt4


Ignore:
Timestamp:
Feb 3, 2010, 8:25:30 PM (15 years ago)
Author:
gah
Message:
 
Location:
branches/blt4/gui/scripts
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/blt4/gui/scripts/icons.tcl

    r1650 r1652  
    105105    set img [image create picture]
    106106    $img copy [lindex $args 0]
    107     eval $img append [lrange $args 1 end]
    108     $img export gif -animated -data bytes -delay $delay
     107    eval $img sequence append [lrange $args 1 end]
     108    $img export gif -animate -data bytes -delay $delay
    109109    image delete $img
    110110    return $bytes
  • branches/blt4/gui/scripts/periodictable.tcl

    r1651 r1652  
    1919option add *PeriodicTable.borderwidth 1 widgetDefault
    2020option add *PeriodicTable.relief flat widgetDefault
    21 option add *PeriodicTable.font "Arial 8"
     21option add *PeriodicTable.font "Arial 6"
    2222
    2323itcl::class Rappture::PeriodicTable {
     
    292292   
    293293itk::usual PeriodicTable {
    294     keep -background -outline -cursor
     294    keep -outline -cursor
    295295}
    296296itk::usual Scrollset {
     
    310310    }
    311311    itk_component add scroller {
    312         blt::scrollset $itk_interior.sc -yscrollmode $itk_interior.sc.ys \
     312        blt::scrollset $itk_interior.sc -yscrollbar $itk_interior.sc.ys \
    313313            -window $itk_interior.sc.table
    314314    }
     
    559559# ----------------------------------------------------------------------
    560560itcl::body Rappture::PeriodicTable::Redraw {} {
    561 set sqwidth 24
    562 set sqheight 24
     561    set sqwidth [winfo pixels . 0.22i]
     562    set sqheight [winfo pixels . 0.22i]
    563563set xoffset 4
    564564set yoffset 4
     
    586586                -anchor c -fill $fg \
    587587                -text [string range $info(symbol) 0 4] \
    588                 -font "Arial 8 bold" -tags $info(name)-symbol
     588                -font "Arial 6" -tags $info(name)-symbol
    589589            $c create text [expr $x2-2] [expr $y1+2] -anchor ne \
    590590                -text $info(number) -fill $fg \
    591                 -font "math1 6" -tags $info(name)-number
     591                -font "math1 4" -tags $info(name)-number
    592592        }
    593593        $c create rectangle $x1 $y1 $x2 $y2 -outline "" -fill "" \
  • branches/blt4/gui/scripts/resultset.tcl

    r1400 r1652  
     1
    12# ----------------------------------------------------------------------
    23#  COMPONENT: ResultSet - controls for a collection of related results
     
    219220
    220221    itk_component add options {
    221         Rappture::Scroller $inner.scrl -xscrollmode auto -yscrollmode auto
     222        blt::scrollset $inner.scrl \
     223            -xscrollbar $inner.scrl.xs \
     224            -yscrollbar $inner.scrl.ys \
     225            -window $inner.scrl.frame
    222226    }
    223227    pack $itk_component(options) -expand yes -fill both
    224 
    225     set popup [$itk_component(options) contents frame]
    226     frame $popup.bg
     228    blt::tk::scrollbar $inner.scrl.xs           
     229    blt::tk::scrollbar $inner.scrl.ys           
     230    itk_component add popup {
     231        frame $inner.scrl.frame
     232    }
     233    frame $itk_component(popup).bg
    227234
    228235    eval itk_initialize $args
     
    347354
    348355    # delete all adjuster controls
    349     set popup [$itk_component(options) contents frame]
     356    set popup $itk_component(popup)
    350357    set shortlist $itk_component(dials)
    351358    foreach col $_cntlInfo($this-all) {
     
    679686    }
    680687
    681     set popup [$itk_component(options) contents frame]
     688    set popup $itk_component(popup)
    682689    grid columnconfigure $popup 0 -minsize 16
    683690    grid columnconfigure $popup 1 -weight 1
     
    834841        #
    835842        set id $_cntlInfo($this-$col-id)
    836         set popup [$itk_component(options) contents frame]
     843        set popup $itk_component(popup)
    837844        set dial $popup.dial$id
    838845
     
    883890    array set eventdata $args
    884891
    885     set popup [$itk_component(options) contents frame]
     892    set popup $itk_component(popup)
    886893    set shortlist $itk_component(dials)
    887894
     
    12951302        set id $_cntlInfo($this-$col-id)
    12961303
    1297         set popup [$itk_component(options) contents frame]
     1304        set popup $itk_component(popup)
    12981305        set widget $popup.label$id
    12991306        set wmax [winfo width $popup.dial$id]
     
    14191426    }
    14201427    set id $_cntlInfo($this-$col-id)
    1421     set popup [$itk_component(options) contents frame]
     1428    set popup $itk_component(popup)
    14221429    set pbutton $popup.all$id
    14231430    set current [$pbutton cget -relief]
  • branches/blt4/gui/scripts/scroller.tcl

    r1641 r1652  
    7777        "[itcl::code $this _fixsize]; list"
    7878
     79    itk_component add scrollset {
     80        blt::scrollset $itk_interior.ss
     81    }
    7982    itk_component add xsbar {
    80         scrollbar $itk_interior.xsbar -orient horizontal
     83        blt::tk::scrollbar $itk_interior.xsbar -orient horizontal
    8184    }
    8285    itk_component add ysbar {
    83         scrollbar $itk_interior.ysbar -orient vertical
     86        blt::tk::scrollbar $itk_interior.ysbar -orient vertical
    8487    }
    8588
Note: See TracChangeset for help on using the changeset viewer.