Python wrapper for the Fast Light Toolkit pyFLTK

ScreenshotsExamples

Examples:

Hello World with a Cancel Button:

pyFLTK (Python) pyFLTK2 (Python)
from fltk import *
import sys

def theCancelButtonCallback(ptr):
	sys.exit(0)

window = Fl_Window(100,100,200,90)
window.label(sys.argv[0])
button = Fl_Button(9,20,180,50)
button.label("Hello World")
button.callback(theCancelButtonCallback)
window.end()
window.show(len(sys.argv), sys.argv)
Fl.run()
from fltk2 import *
import sys

def theCancelButtonCallback(ptr):
	sys.exit(0)

window = Window(100,100,200,90)
window.label(sys.argv[0])
button = Button(9,20,180,50)
button.label("Hello World")
button.callback(theCancelButtonCallback)
window.end()
window.show(len(sys.argv), sys.argv)
run()
hello hello2


Some Screenshots:

Image Processing Application

screen1

Cube.py (Requires OpenGL)

cube