renix1

Simple example of tkinter python 3.x

Dec 26th, 2016
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. # coding: utf-8
  2.  
  3. """
  4.    simple demo of tkinter gui in python 3.x
  5. """
  6.  
  7. from tkinter import *
  8.  
  9. class Window(Frame):
  10.     def __init__(self, master=None):
  11.         Frame.__init__(self, master)
  12.         self.mainloop()
  13.  
  14. root = Tk()
  15. root.wm_title("Janela Principal")
  16. j1 = Window(root)
  17. j1.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment