Chargement en cours...
|
|
|||||||||||||
|
| Échangez opinions et commentaires dans les forums de discussion. |
Re: anki
[
C'est mieux sans oublier pas le return :
proc something {} {
global w1 w2
set espagnol [$w1.t get 1.0 end]
set francais [$w2.v get 1.0 end]
set anki {}
foreach fr [split $espagnol ";"] sp [split $francais ";"] {
set fr [string trim $fr]
set sp [string trim $sp]
if {[string length $fr] || [string length $sp]} {
append anki "$fr; $sp;\n"
}
}
return $anki
}
--
David Zolli
|
||||||||||||||||