#!/usr/local/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2018 <NAME>
# All rights reserved.
#
# Author: <NAME>

"""
    -   IMPORTING MODULES    -

    -        TKINTER         -
Docs
https://docs.python.org/2.7/library/tkinter.html

24.1.2.2. A Simple Hello World Program
from Tkinter import *

class Application(Frame):
    def say_hi(self):
        print "hi there, everyone!"

    def createWidgets(self):
        self.QUIT = Button(self)
        self.QUIT["text"] = "QUIT"
        self.QUIT["fg"]   = "red"
        self.QUIT["command"] =  self.quit

        self.QUIT.pack({"side": "left"})

        self.hi_there = Button(self)
        self.hi_there["text"] = "Hello",
        self.hi_there["command"] = self.say_hi

        self.hi_there.pack({"side": "left"})

    def __init__(self, master=None):
        Frame.__init__(self, master)
        self.pack()
        self.createWidgets()

root = Tk()
app = Application(master=root)
app.mainloop()
root.destroy()

"""


from Tkinter import *

windows = Tk()
windows.mainloop()

#!/usr/local/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2018 <NAME>
# All rights reserved.
#
# Author: <NAME>

"""
    -   IMPORTING MODULES    -

    -        TKINTER         -
Docs
https://docs.python.org/2.7/library/tkinter.html

24.1.2.2. A Simple Hello World Program
from Tkinter import *

class Application(Frame):
    def say_hi(self):
        print "hi there, everyone!"

    def createWidgets(self):
        self.QUIT = Button(self)
        self.QUIT["text"] = "QUIT"
        self.QUIT["fg"]   = "red"
        self.QUIT["command"] =  self.quit

        self.QUIT.pack({"side": "left"})

        self.hi_there = Button(self)
        self.hi_there["text"] = "Hello",
        self.hi_there["command"] = self.say_hi

        self.hi_there.pack({"side": "left"})

    def __init__(self, master=None):
        Frame.__init__(self, master)
        self.pack()
        self.createWidgets()

root = Tk()
app = Application(master=root)
app.mainloop()
root.destroy()

"""


from Tkinter import *

windows = Tk()
windows.mainloop()

#!/usr/local/bin/python # -*- coding: utf-8 -*- # # Copyright 2018 <NAME> # All rights reserved. # # Author: <NAME> -   IMPORTING MODULES    -      -        TKINTER         - Docs https://docs.python.org/2.7/library/tkinter.html  24.1.2.2. A Simple Hello World Program from Tkinter import *  class Application(Frame):     def say_hi(self):         print "hi there, everyone!"      def createWidgets(self):         self.QUIT = Button(self)         self.QUIT["text"] = "QUIT"         self.QUIT["fg"]   = "red"         self.QUIT["command"] =  self.quit          self.QUIT.pack({"side": "left"})          self.hi_there = Button(self)         self.hi_there["text"] = "Hello",         self.hi_there["command"] = self.say_hi          self.hi_there.pack({"side": "left"})      def __init__(self, master=None):         Frame.__init__(self, master)         self.pack()         self.createWidgets()  root = Tk() app = Application(master=root) app.mainloop() root.destroy()