Changeset e70625a in tol


Ignore:
Timestamp:
Feb 2, 2012, 8:31:53 AM (15 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
a4a32ef
Parents:
23f300d
Message:

refs #1191, se corrige un error en el empaquetado de -customgui y el título de la ventana de diálogo de proceso de tareas de instalación

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@4054 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tolbase/lib/toltk/tolpkg_gui.tcl

    r23f300d re70625a  
    901901        -command [ list ::TolPkgGUI::InstallPackages $listNEW ]
    902902  } elseif { [ llength $listNEW ] > 1 } {
    903     $w add command -label [ mc "Install selected" ] \
     903    $w add command -label [ mc "Install selected" ]... \
    904904        -command [ list ::TolPkgGUI::InstallPackages $listNEW ]
    905905  }
    906   $w add command -label "[ mc {Install ZIP} ]..." \
     906  $w add command -label [ mc "Install ZIP" ]... \
    907907      -command "::TolPkgGUI::InstallZip"
    908908  # update list
    … …  
    912912        -command [ list ::TolPkgGUI::UpdatePackageVersion $listUPD ]
    913913  } elseif { [ llength $listUPD ] > 1 } {
    914     $w add command -label [ mc "Update selected" ] \
     914    $w add command -label [ mc "Update selected" ]... \
    915915        -command [ list ::TolPkgGUI::UpdatePackageVersion $listUPD ]
    916916  }
    917   $w add command -label [ mc "Update all" ] \
     917  $w add command -label [ mc "Update all" ]... \
    918918      -command "::TolPkgGUI::UpdatePackageVersion" \
    919919      -state [ EntryState nodesInfo(update) ]
    … …  
    924924        -command [ list ::TolPkgGUI::UpgradePackages $listUPG ]
    925925  } elseif { [ llength $listUPG ] > 1 } {
    926     $w add command -label [ mc "Upgrade selected" ] \
     926    $w add command -label [ mc "Upgrade selected" ]... \
    927927        -command [ list ::TolPkgGUI::UpgradePackages $listUPG ]
    928928  }
    929   $w add command -label [ mc "Upgrade all" ] \
     929  $w add command -label [ mc "Upgrade all" ]... \
    930930      -command "::TolPkgGUI::UpgradePackages" \
    931931      -state [ EntryState nodesInfo(upgrade) ]
    … …  
    10841084        -relief flat -borderwidth 1 -highlightthickness 0 \
    10851085        -selectbackground #c3c3ff
     1086    frame $f.cgui
    10861087    ProgressBar $f.pbar
    10871088    $w add -text Ok
    … …  
    10921093    grid columnconfigure $f 0 -weight 1
    10931094    grid rowconfigure $f 1 -weight 1
    1094     if { $DlgProcessData(-customgui) ne "" } {
    1095       eval $DlgProcessData(-customgui) $f 3
    1096     }
    10971095  } else {
     1096    wm title $w $DlgProcessData(-title)
    10981097    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
    10991105  }
    11001106  $f.pbar configure -maximum 1 \
    … …  
    11181124  set DlgProcessData(state) ""
    11191125  $w draw
     1126  foreach wc [ winfo children $f.cgui ] {
     1127    destroy $wc
     1128  }
    11201129}
    11211130
    … …  
    14831492}
    14841493
    1485 proc ::TolPkgGUI::CreateSelectDir { f row } {
     1494proc ::TolPkgGUI::CreateSelectDir { f } {
    14861495  set varname [ DlgProcessGetVariableName "directory" ]
    14871496  upvar \#0 $varname var
    … …  
    14911500    trace add variable $varname write ::TolPkgGUI::OnChangeDirectory
    14921501  }
    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 \
    14971505      -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
    15031510  if { $var eq "" } {
    15041511    set var [ pwd ]
Note: See TracChangeset for help on using the changeset viewer.