2005-01-10 | Paul Boddie | file changeset files shortlog | Added a Tkinter wrapping example based on the Python 2.2.2 library reference example. |
paul@104 | 1 | public class Application extends tkjava.Frame { |
paul@104 | 2 | private tkjava.Button quit, hiThere; |
paul@104 | 3 | |
paul@104 | 4 | public Application() { |
paul@104 | 5 | super(); |
paul@104 | 6 | this.pack(); |
paul@104 | 7 | this.createWidgets(); |
paul@104 | 8 | } |
paul@104 | 9 | |
paul@104 | 10 | public void createWidgets() { |
paul@104 | 11 | this.quit = new tkjava.Button(this); |
paul@104 | 12 | this.quit.pack(); |
paul@104 | 13 | this.hiThere = new tkjava.Button(this); |
paul@104 | 14 | this.hiThere.pack(); |
paul@104 | 15 | } |
paul@104 | 16 | } |