Window creation/X11: Difference between revisions

Use my new Template:Field attention to categorize the X11-ignorance notes for attention
m (→‎{{header|Python}}: added {{trans|C}})
(Use my new Template:Field attention to categorize the X11-ignorance notes for attention)
Line 68:
 
=={{header|Common Lisp}}==
 
Note:{{field attention|Common Lisp|X11|This example was written in near-total ignorance of X11 by consulting the [http://www.cliki.net/CLX%20Manual CLX manual] to find equialentsequivalents for the parts of the C example. It was also only tested with [[Mac OS X]] X11, which is not exactly normal. Do not take it as an complete example, well-tested, or good style. [Do, however, remove this disclaimer if you know better and have checked it.]}}
 
{{trans|C}}
Line 74 ⟶ 76:
 
This example uses CLX, which is the de facto standard X11 library for Common Lisp. CLX is not a binding to Xlib; it is a Lisp library implementing the X11 protocol.
 
Note: This example was written in near-total ignorance of X11 by consulting the [http://www.cliki.net/CLX%20Manual CLX manual] to find equialents for the parts of the C example. It was also only tested with [[Mac OS X]] X11, which is not exactly normal. Do not take it as an complete example, well-tested, or good style. [Do, however, remove this disclaimer if you know better and have checked it.]
 
<lang lisp>;;; Single-file/interactive setup; large applications should define an ASDF system instead
Line 145:
 
=={{header|Python}}==
 
{{field attention|Python|X11|Note (stolen from CLX example): This example was written in near-total ignorance of X11 by consulting the python-xlib's examples (included in its distribution) to find equialentsequivalents for the parts of the C example. Do not take it as an complete example, well-tested, or good style. [Do, however, remove this disclaimer if you know better and have checked it.]}}
 
{{trans|C}}
 
{{libheader|python-Xlib}}
 
Line 188 ⟶ 192:
Window(display.Display(), "Hello, World!").loop()
</lang>
Note (stolen from CLX example): This example was written in near-total ignorance of X11 by consulting the python-xlib's examples (included in its distribution) to find equialents for the parts of the C example. Do not take it as an complete example, well-tested, or good style. [Do, however, remove this disclaimer if you know better and have checked it.]