2002-04-26 05:16:26 -07:00
|
|
|
##ifdef CAMLTK
|
|
|
|
|
|
|
|
let pixels units =
|
|
|
|
let res =
|
|
|
|
tkEval
|
|
|
|
[|TkToken"winfo";
|
|
|
|
TkToken"pixels";
|
|
|
|
cCAMLtoTKwidget widget_any_table default_toplevel;
|
|
|
|
cCAMLtoTKunits units|] in
|
|
|
|
int_of_string res
|
|
|
|
|
|
|
|
##else
|
|
|
|
|
1999-12-16 00:37:38 -08:00
|
|
|
let pixels units =
|
2000-02-15 02:10:26 -08:00
|
|
|
let res =
|
|
|
|
tkEval
|
|
|
|
[|TkToken"winfo";
|
|
|
|
TkToken"pixels";
|
|
|
|
cCAMLtoTKwidget default_toplevel;
|
|
|
|
cCAMLtoTKunits units|] in
|
|
|
|
int_of_string res
|
2002-04-26 05:16:26 -07:00
|
|
|
|
|
|
|
##endif
|