Attachment 'app1.py'

Download

   1 #!/usr/bin/env python3
   2 import tkinter as tk
   3 
   4 class Application(tk.Frame):
   5     def __init__(self, master=None):
   6         tk.Frame.__init__(self, master)
   7         self.grid()
   8         self.createWidgets()
   9 
  10     def createWidgets(self):
  11         self.quitButton = tk.Button(self, text='Quit',
  12             command=self.quit)
  13         self.quitButton.grid()
  14 
  15 app = Application()
  16 app.master.title('Sample application')
  17 app.mainloop()

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.

You are not allowed to attach a file to this page.