TKE  3.6
Advanced code editor for programmers
api::theme Namespace Reference

Functions

 get_value interp pname category option
 

Function Documentation

§ get_value()

api::theme::get_value   interp pname category option  

Returns the given theme value as specified by the category and option value. If no value exists, we will return an error.

Definition at line 1162 of file api.tcl.

1162  proc get_value {interp pname category option} {
1163 
1164  # Get the category options
1165  array set opts [theme::get_category_options $category 1]
1166 
1167  if {![info exists opts($option)]} {
1168  return -code error "Unable to find theme category option ($category, $option)"
1169  }
1170 
1171  return $opts($option)
1172 
1173  }