Window creation/X11: Difference between revisions

m
(→‎{{header|Tcl}}: + standard ML)
Line 1,761:
XMapWindow w;
XFlush dp ;
XDrawString w (DefaultGC dp) (XPoint {x=10,y=1050}) "Hello World!" ;
XFlush dp ;</lang>
 
=={{header|Tcl}}==
Tcl does not come with a low-level connection to the X protocol, as it has long been distributed with [[Tk]] which offers a [[Simple Windowed Application|much higher-level interface]] (and which is portable to other platforms too). This means that the interface has to be crafted directly. This can be done with either [http://www.swig.org/ SWIG] or [[critcl]]. This example shows how to do it the latter way:
Anonymous user