    # Widgets:
from tkinter import *
window=Tk()
imgLbi=Label(window)
label1=Label(window,relief='groove')
label2=Label(window,relief='groove')
label3=Label(window,relief='groove')
label4=Label(window,relief='groove')
label5=Label(window,relief='groove')
label6=Label(window,relief='groove')
getBtn=Button(window)
resBtn=Button(window)

    #Geometry
imgLbi.grid(row=1,column=1,rowspan=2)
label1.grid(row=1,column=2,padx=10)
label2.grid(row=1,column=3,padx=10)
label3.grid(row=1,column=4,padx=10)
label4.grid(row=1,column=5,padx=10)
label5.grid(row=1,column=6,padx=10)
label6.grid(row=1,column=7,padx=(10,20))
getBtn.grid(row=2,column=2,columnspan = 4)
resBtn.grid(row=2,column=6,columnspan = 2)

    #Static Properties
window.title('Lotto Number Picker')
window.resizable(0,0)
getBtn.configure(text='Get My Lucky Numbers')
resBtn.configure(text='Reset')

    # Initial Properties
label1.configure(text='...')
label2.configure(text='...')
label3.configure(text='...')
label4.configure(text='...')
label5.configure(text='...')
label6.configure(text='...')
resBtn.configure(state=DISABLED)

    #Dynamic Properties
from random import sample
def pick():
    nums=sample(range(1,49),6)
    label1.configure(text=nums[0])
    label2.configure(text=nums[1])
    label3.configure(text=nums[2])
    label4.configure(text=nums[3])
    label5.configure(text=nums[4])
    label6.configure(text=nums[5])
    getBtn.configure(state=DISABLED)
    resBtn.configure(state=NORMAL)

def reset():
    label1.configure(text='...')
    label2.configure(text='...')
    label3.configure(text='...')
    label4.configure(text='...')
    label5.configure(text='...')
    label6.configure(text='...')
    getBtn.configure(state=NORMAL)
    resBtn.configure(state=DISABLED)

getBtn.configure(command = pick)
resBtn.configure(command = reset)

    #Sustain window
window.mainloop()

import sys
from cx_Freeze import setup,Executable
base=None
if sys.platform=='win32':base='Win32GUL'
opts={'include_files':['lotto.gif'],'includes':['re']}
setup(name='Lotto',
      version='1.0',
      description='Lottery Number Picker',
      author='Mike McGrath',
      options={'build_exe':opts},
      executables=[Executable('lotto.py',base=base)])
