Changeset e70625a in tol
- Timestamp:
- Feb 2, 2012, 8:31:53 AM (15 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- a4a32ef
- Parents:
- 23f300d
- File:
-
- 1 edited
-
tolbase/lib/toltk/tolpkg_gui.tcl (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tolbase/lib/toltk/tolpkg_gui.tcl
r23f300d re70625a 901 901 -command [ list ::TolPkgGUI::InstallPackages $listNEW ] 902 902 } elseif { [ llength $listNEW ] > 1 } { 903 $w add command -label [ mc "Install selected" ] \903 $w add command -label [ mc "Install selected" ]... \ 904 904 -command [ list ::TolPkgGUI::InstallPackages $listNEW ] 905 905 } 906 $w add command -label "[ mc {Install ZIP} ]..."\906 $w add command -label [ mc "Install ZIP" ]... \ 907 907 -command "::TolPkgGUI::InstallZip" 908 908 # update list … … 912 912 -command [ list ::TolPkgGUI::UpdatePackageVersion $listUPD ] 913 913 } elseif { [ llength $listUPD ] > 1 } { 914 $w add command -label [ mc "Update selected" ] \914 $w add command -label [ mc "Update selected" ]... \ 915 915 -command [ list ::TolPkgGUI::UpdatePackageVersion $listUPD ] 916 916 } 917 $w add command -label [ mc "Update all" ] \917 $w add command -label [ mc "Update all" ]... \ 918 918 -command "::TolPkgGUI::UpdatePackageVersion" \ 919 919 -state [ EntryState nodesInfo(update) ] … … 924 924 -command [ list ::TolPkgGUI::UpgradePackages $listUPG ] 925 925 } elseif { [ llength $listUPG ] > 1 } { 926 $w add command -label [ mc "Upgrade selected" ] \926 $w add command -label [ mc "Upgrade selected" ]... \ 927 927 -command [ list ::TolPkgGUI::UpgradePackages $listUPG ] 928 928 } 929 $w add command -label [ mc "Upgrade all" ] \929 $w add command -label [ mc "Upgrade all" ]... \ 930 930 -command "::TolPkgGUI::UpgradePackages" \ 931 931 -state [ EntryState nodesInfo(upgrade) ] … … 1084 1084 -relief flat -borderwidth 1 -highlightthickness 0 \ 1085 1085 -selectbackground #c3c3ff 1086 frame $f.cgui 1086 1087 ProgressBar $f.pbar 1087 1088 $w add -text Ok … … 1092 1093 grid columnconfigure $f 0 -weight 1 1093 1094 grid rowconfigure $f 1 -weight 1 1094 if { $DlgProcessData(-customgui) ne "" } {1095 eval $DlgProcessData(-customgui) $f 31096 }1097 1095 } else { 1096 wm title $w $DlgProcessData(-title) 1098 1097 set f [ DlgProcessGetFrame ] 1098 } 1099 if { $DlgProcessData(-customgui) ne "" } { 1100 grid $f.cgui -row 3 -column 0 -sticky snew 1101 eval $DlgProcessData(-customgui) $f.cgui 1102 } else { 1103 grid remove $f.cgui 1104 grid rowconfigure $f 3 -weight 0 1099 1105 } 1100 1106 $f.pbar configure -maximum 1 \ … … 1118 1124 set DlgProcessData(state) "" 1119 1125 $w draw 1126 foreach wc [ winfo children $f.cgui ] { 1127 destroy $wc 1128 } 1120 1129 } 1121 1130 … … 1483 1492 } 1484 1493 1485 proc ::TolPkgGUI::CreateSelectDir { f row} {1494 proc ::TolPkgGUI::CreateSelectDir { f } { 1486 1495 set varname [ DlgProcessGetVariableName "directory" ] 1487 1496 upvar \#0 $varname var … … 1491 1500 trace add variable $varname write ::TolPkgGUI::OnChangeDirectory 1492 1501 } 1493 frame $f.fdir 1494 label $f.fdir.lb -text [ mc "Output directory" ]: 1495 entry $f.fdir.ent -textvariable $varname 1496 button $f.fdir.btn -image folder_yellow_16 \ 1502 label $f.lb -text [ mc "Output directory" ]: 1503 entry $f.ent -textvariable $varname 1504 button $f.btn -image folder_yellow_16 \ 1497 1505 -command "::TolPkgGUI::ChooseDir $varname" 1498 grid $f.fdir.lb -row 0 -column 0 -sticky w 1499 grid $f.fdir.ent -row 0 -column 1 -sticky ew 1500 grid $f.fdir.btn -row 0 -column 2 -sticky ew 1501 grid columnconfigure $f.fdir 1 -weight 1 1502 grid $f.fdir -row $row -column 0 -sticky ew 1506 grid $f.lb -row 0 -column 0 -sticky w 1507 grid $f.ent -row 0 -column 1 -sticky ew 1508 grid $f.btn -row 0 -column 2 -sticky ew 1509 grid columnconfigure $f 1 -weight 1 1503 1510 if { $var eq "" } { 1504 1511 set var [ pwd ]
Note: See TracChangeset
for help on using the changeset viewer.
