from tkinter import *
import tkinter.messagebox as tm
import mysql.connector
import serial

# Import OpenCV2 for image processing
import cv2

# Import numpy for matrices calculations
import numpy as np

class LoginFrame(Frame):
    def __init__(self, master):
        super().__init__(master)
        self.label_username = Label(self, text="Username")
        self.label_password = Label(self, text="Password")
        self.entry_username = Entry(self)
        self.entry_password = Entry(self, show="*")
        self.label_username.grid(row=0, sticky=E)
        self.label_password.grid(row=1, sticky=E)
        self.entry_username.grid(row=0, column=1)
        self.entry_password.grid(row=1, column=1)
        #self.checkbox = Checkbutton(self, text="Keep me logged in")
        #self.checkbox.grid(columnspan=2)
        #self.logbtn = Button(self, text="Iniciar Sesion", command=self._login_btn_clicked)
        #self.logbtn.grid(columnspan=2)
        #to SingUp
        self.singbtn = Button(self, text="Registrarse", command=self._singup_btn_clicked)
        self.singbtn.grid(columnspan=2)
        self.pack()


    def _singup_btn_clicked(self):
        print("123123")
    


root = Tk()

lf = LoginFrame(root)
root.mainloop()