<reponame>Retaehc-pop/Krub-cafe-Cashier-app
import Login
from tkinter import *
from PIL import ImageTk,Image

def welcome():
    global screen
    screen = Tk()
    screen.geometry("300x250")
    screen.title("Krub cafe Login")
    screen.iconbitmap('img\LOGO KRUB.ico')
    #screen.wm_attributes("-transparentcolor", 'grey')
    global background

    render = Image.open('img/login bg.jpg')
    background = ImageTk.PhotoImage(render)
    img = Label(screen, image=background)
    img.place(x=0, y=0)
    Label(screen,text='Welcome',bg='white',font='none 30 ').pack()
    b=Button(screen,text="start",bg='white',font='none 16',command=start)
    b.place(x=130,y=200)

    screen.mainloop()


def start():
    screen.destroy()
    Login.main_screen()


welcome()



import Login
from tkinter import *
from PIL import ImageTk,Image

def welcome():
    global screen
    screen = Tk()
    screen.geometry("300x250")
    screen.title("Krub cafe Login")
    screen.iconbitmap('img\LOGO KRUB.ico')
    #screen.wm_attributes("-transparentcolor", 'grey')
    global background

    render = Image.open('img/login bg.jpg')
    background = ImageTk.PhotoImage(render)
    img = Label(screen, image=background)
    img.place(x=0, y=0)
    Label(screen,text='Welcome',bg='white',font='none 30 ').pack()
    b=Button(screen,text="start",bg='white',font='none 16',command=start)
    b.place(x=130,y=200)

    screen.mainloop()


def start():
    screen.destroy()
    Login.main_screen()


welcome()
#screen.wm_attributes("-transparentcolor", 'grey')