
![]() | Goal: make a window on the screen with the text ``Hello World'' | ||||
![]() | Compare implementations in
| ||||
![]() | 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()
|