[Main Page] [kdraw #1] [kdraw #2] [kdraw #3] [kdraw #4]

KDraw


Having worked our way through the hello world lessons, this first installment of the scribbling application shouldn't come as a surprise. I don't think there's much to explain...


#!/usr/bin/env python
import sys
from kdeui import KTMainWindow, KApplication

class KMainWindow(KTMainWindow):

  def __init__(self):
    KTMainWindow.__init__(self)

app=KApplication(sys.argv, "KDraw - Python")
window=KMainWindow()
window.show()
app.exec_loop()


Changes