3 # Copyright (c) Twisted Matrix Laboratories.
4 # See LICENSE for details.
8 An example of using Twisted with Tkinter.
9 Displays a frame with buttons that responds to mouse clicks.
11 Run this example by typing in:
16 from Tkinter import Tk, Frame, Button, LEFT
17 from twisted.internet import reactor, tksupport
29 def __init__(self, master):
33 q = Button(frame, text="Quit!", command=self.onQuit)
34 b = Button(frame, text="Hello!", command=self.onButton)
40 if __name__ == '__main__':
42 tksupport.install(root)