Next: Xlib Prev: Top Up: Top Top: Top
In many cases, functions in the X libraries have been turned into methods of various objects. See the sections on the various objects for lists of defined methods. See the index to find of which object a function is a method.
As an appetizer, here is the Hello World program using Motif.
import sys, Xt, Xm
def main():
toplevel = Xt.Initialize('XHello', [], sys.argv)
hello = toplevel.CreateManagedWidget('hello', Xm.Label,
{'labelString': 'Hello World'})
toplevel.RealizeWidget()
Xt.MainLoop()
main()