You are tasked with implementing an Employee Leave Management System using Python and Tkinter. The system should allow employees to log in and apply for annual or sick leave.
The program should have the following functionality:
Create a multi-dimensional list containing employee details (username, password, annual leave days, sick leave days).
Create a login window allowing users to log into the system.
After a successful login, the system should display the employee's available annual and sick leave days.
The employee should be able to apply for leave by:
Choosing between Annual Leave or Sick Leave.
Selecting the number of leave days (between 1 and 10).
If sick leave is selected, allow the employee to specify if it is a Planned Hospitalisation or Unplanned Hospitalisation using a dropdown (combobox).
If more than one day of sick leave is selected, display a message prompting for a medical note.
Ensure that the employee cannot apply for more leave days than they have available. Display an appropriate message if the leave application is successful or if there are insufficient leave days.
Include the option to logout, which should return the user to the login window.
You are tasked with implementing an Employee Leave Management System using Python and Tkinter. The system should allow employees to log in and apply for annual or sick leave.
The program should have the following functionality:
Create a multi-dimensional list containing employee details (username, password, annual leave days, sick leave days).
Create a login window allowing users to log into the system.
After a successful login, the system should display the employee's available annual and sick leave days.
The employee should be able to apply for leave by:
Choosing between Annual Leave or Sick Leave.
Selecting the number of leave days (between 1 and 10).
If sick leave is selected, allow the employee to specify if it is a Planned Hospitalisation or Unplanned Hospitalisation using a dropdown (combobox).
If more than one day of sick leave is selected, display a message prompting for a medical note.
Ensure that the employee cannot apply for more leave days than they have available. Display an appropriate message if the leave application is successful or if there are insufficient leave days.
Include the option to logout, which should return the user to the login window.
Ensure the windows are centered on the screen.