Python+Tk vs. C+X11

Goal: make a window on the screen with the text ``Hello World''
Compare implementations in

C and the X11 library
Python and the Tk library
C/X11: 176 lines of ugly code
Python/Tk: 6 lines of readable code
#!/usr/bin/env python
from Tkinter import *
root = Tk()
Label(root, text='Hello, World!',
      foreground="white", background="black").pack()
root.mainloop()

previousnexttable of contents