#!/usr/bin/env python3
# -*- coding: utf-8 -*

'''
# Pyhton GUI V0.1
# date = 2018.09.16
# author = zbh
'''
import tkinter as tk

window = tk.Tk()
window.title('ZSmart')
window.geometry('200x100')

var = tk.StringVar()

l = tk.Label(window,
             textvar=var,
             bg='blue',
             font=('Arial',12),
             width=15,
             height=2)
l.pack()

on_hit = False

def hit_me():
    global on_hit
    if on_hit == False:
        on_hit = True
        var.set('Hello,hit me')
    else:
        on_hit = False
        var.set('OMG')

b = tk.Button(window,
              text='Log in',
              width=5,
              height=5,
              command=hit_me)
b.pack()

window.mainloop()
f36e28b06c080d0de6ff76dc21d7cd483955fdef
<mask token>


def hit_me():
    global on_hit
    if on_hit == False:
        on_hit = True
        var.set('Hello,hit me')
    else:
        on_hit = False
        var.set('OMG')


<mask token>

<mask token>
window.title('ZSmart')
window.geometry('200x100')
<mask token>
l.pack()
<mask token>


def hit_me():
    global on_hit
    if on_hit == False:
        on_hit = True
        var.set('Hello,hit me')
    else:
        on_hit = False
        var.set('OMG')


<mask token>
b.pack()
window.mainloop()

<mask token>
window = tk.Tk()
window.title('ZSmart')
window.geometry('200x100')
var = tk.StringVar()
l = tk.Label(window, textvar=var, bg='blue', font=('Arial', 12), width=15,
    height=2)
l.pack()
on_hit = False


def hit_me():
    global on_hit
    if on_hit == False:
        on_hit = True
        var.set('Hello,hit me')
    else:
        on_hit = False
        var.set('OMG')


b = tk.Button(window, text='Log in', width=5, height=5, command=hit_me)
b.pack()
window.mainloop()

<mask token>
import tkinter as tk
window = tk.Tk()
window.title('ZSmart')
window.geometry('200x100')
var = tk.StringVar()
l = tk.Label(window, textvar=var, bg='blue', font=('Arial', 12), width=15,
    height=2)
l.pack()
on_hit = False


def hit_me():
    global on_hit
    if on_hit == False:
        on_hit = True
        var.set('Hello,hit me')
    else:
        on_hit = False
        var.set('OMG')


b = tk.Button(window, text='Log in', width=5, height=5, command=hit_me)
b.pack()
window.mainloop()

#!/usr/bin/env python3
# -*- coding: utf-8 -*

'''
# Pyhton GUI V0.1
# date = 2018.09.16
# author = zbh
'''
import tkinter as tk

window = tk.Tk()
window.title('ZSmart')
window.geometry('200x100')

var = tk.StringVar()

l = tk.Label(window,
             textvar=var,
             bg='blue',
             font=('Arial',12),
             width=15,
             height=2)
l.pack()

on_hit = False

def hit_me():
    global on_hit
    if on_hit == False:
        on_hit = True
        var.set('Hello,hit me')
    else:
        on_hit = False
        var.set('OMG')

b = tk.Button(window,
              text='Log in',
              width=5,
              height=5,
              command=hit_me)
b.pack()

window.mainloop()