mirror of
https://github.com/StefanSchippers/xschem.git
synced 2026-08-22 14:17:32 +02:00
replace text widget "count -displaylines" with alternative tcl8.4 compatible
This commit is contained in:
+3
-1
@@ -4622,7 +4622,9 @@ proc infowindow {} {
|
|||||||
}
|
}
|
||||||
$z.f1.text delete 1.0 end
|
$z.f1.text delete 1.0 end
|
||||||
$z.f1.text insert 1.0 $infowindow_text
|
$z.f1.text insert 1.0 $infowindow_text
|
||||||
set lines [$z.f1.text count -displaylines 1.0 end]
|
## does not work in tcl/tk8.4
|
||||||
|
# set lines [$z.f1.text count -displaylines 1.0 end]
|
||||||
|
set lines [regexp -all \n [$z.f1.text get 1.0 end]]
|
||||||
$z.f1.text see ${lines}.0
|
$z.f1.text see ${lines}.0
|
||||||
return {}
|
return {}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user