Changeset 1652 for branches/blt4
- Timestamp:
- Feb 3, 2010, 8:25:30 PM (15 years ago)
- Location:
- branches/blt4/gui/scripts
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/blt4/gui/scripts/icons.tcl
r1650 r1652 105 105 set img [image create picture] 106 106 $img copy [lindex $args 0] 107 eval $img append [lrange $args 1 end]108 $img export gif -animate d-data bytes -delay $delay107 eval $img sequence append [lrange $args 1 end] 108 $img export gif -animate -data bytes -delay $delay 109 109 image delete $img 110 110 return $bytes -
branches/blt4/gui/scripts/periodictable.tcl
r1651 r1652 19 19 option add *PeriodicTable.borderwidth 1 widgetDefault 20 20 option add *PeriodicTable.relief flat widgetDefault 21 option add *PeriodicTable.font "Arial 8"21 option add *PeriodicTable.font "Arial 6" 22 22 23 23 itcl::class Rappture::PeriodicTable { … … 292 292 293 293 itk::usual PeriodicTable { 294 keep - background -outline -cursor294 keep -outline -cursor 295 295 } 296 296 itk::usual Scrollset { … … 310 310 } 311 311 itk_component add scroller { 312 blt::scrollset $itk_interior.sc -yscroll mode$itk_interior.sc.ys \312 blt::scrollset $itk_interior.sc -yscrollbar $itk_interior.sc.ys \ 313 313 -window $itk_interior.sc.table 314 314 } … … 559 559 # ---------------------------------------------------------------------- 560 560 itcl::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] 563 563 set xoffset 4 564 564 set yoffset 4 … … 586 586 -anchor c -fill $fg \ 587 587 -text [string range $info(symbol) 0 4] \ 588 -font "Arial 8 bold" -tags $info(name)-symbol588 -font "Arial 6" -tags $info(name)-symbol 589 589 $c create text [expr $x2-2] [expr $y1+2] -anchor ne \ 590 590 -text $info(number) -fill $fg \ 591 -font "math1 6" -tags $info(name)-number591 -font "math1 4" -tags $info(name)-number 592 592 } 593 593 $c create rectangle $x1 $y1 $x2 $y2 -outline "" -fill "" \ -
branches/blt4/gui/scripts/resultset.tcl
r1400 r1652 1 1 2 # ---------------------------------------------------------------------- 2 3 # COMPONENT: ResultSet - controls for a collection of related results … … 219 220 220 221 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 222 226 } 223 227 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 227 234 228 235 eval itk_initialize $args … … 347 354 348 355 # delete all adjuster controls 349 set popup [$itk_component(options) contents frame]356 set popup $itk_component(popup) 350 357 set shortlist $itk_component(dials) 351 358 foreach col $_cntlInfo($this-all) { … … 679 686 } 680 687 681 set popup [$itk_component(options) contents frame]688 set popup $itk_component(popup) 682 689 grid columnconfigure $popup 0 -minsize 16 683 690 grid columnconfigure $popup 1 -weight 1 … … 834 841 # 835 842 set id $_cntlInfo($this-$col-id) 836 set popup [$itk_component(options) contents frame]843 set popup $itk_component(popup) 837 844 set dial $popup.dial$id 838 845 … … 883 890 array set eventdata $args 884 891 885 set popup [$itk_component(options) contents frame]892 set popup $itk_component(popup) 886 893 set shortlist $itk_component(dials) 887 894 … … 1295 1302 set id $_cntlInfo($this-$col-id) 1296 1303 1297 set popup [$itk_component(options) contents frame]1304 set popup $itk_component(popup) 1298 1305 set widget $popup.label$id 1299 1306 set wmax [winfo width $popup.dial$id] … … 1419 1426 } 1420 1427 set id $_cntlInfo($this-$col-id) 1421 set popup [$itk_component(options) contents frame]1428 set popup $itk_component(popup) 1422 1429 set pbutton $popup.all$id 1423 1430 set current [$pbutton cget -relief] -
branches/blt4/gui/scripts/scroller.tcl
r1641 r1652 77 77 "[itcl::code $this _fixsize]; list" 78 78 79 itk_component add scrollset { 80 blt::scrollset $itk_interior.ss 81 } 79 82 itk_component add xsbar { 80 scrollbar $itk_interior.xsbar -orient horizontal83 blt::tk::scrollbar $itk_interior.xsbar -orient horizontal 81 84 } 82 85 itk_component add ysbar { 83 scrollbar $itk_interior.ysbar -orient vertical86 blt::tk::scrollbar $itk_interior.ysbar -orient vertical 84 87 } 85 88
Note: See TracChangeset
for help on using the changeset viewer.