#
proc version_init {} {
- global tkinspect
- set tkinspect(release) 5.0.4
+ global tkinspect tk_version
+ set tkinspect(release) 5.0.5
set tkinspect(release_date) "Feb 14, 1995"
+ scan $tk_version "%d.%d" major minor
+ if {$major != 4} {
+ puts stderr \
+ "tkinspect-5 requires Tk 4.x, you appear to be running Tk $major.$minor"
+ exit 1
+ }
}
+