Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
5001CEM/companyMeeting.py
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
53 lines (32 sloc)
1.35 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tkinter import * | |
from PIL import ImageTk, Image | |
def open_company_meeting_page(): | |
company_meeting_page = Toplevel() | |
company_meeting_page.title("Company Meeting") | |
company_meeting_page.geometry("800x720") | |
#var | |
temp_date = "12/12/2022" | |
date = temp_date | |
temp_time = "11AM" | |
time = temp_time | |
temp_location = "Floor 3, Room no. 8" | |
location = temp_location | |
# Image | |
meeting_img = ImageTk.PhotoImage(Image.open("meeting.jpg")) | |
#Labels | |
jawara_label = Label(company_meeting_page, text="Jawara", font="Verdana 24 bold", fg="Red") | |
meeting_label = Label(company_meeting_page, text= "Company Meeting", font= "Verdana 20", fg="Black") | |
date_text = Label(company_meeting_page, text= "Date:"+date, font="Verdana 10", bg="Light Blue") | |
time_text = Label(company_meeting_page, text="Time:"+ time, font="Verdana 10", bg="Light Blue") | |
place_text= Label(company_meeting_page, text="Location:"+location, font="Verdana 10", bg="Light Blue") | |
image_label = Label(company_meeting_page, image=meeting_img) | |
#Grid arrangement | |
jawara_label.grid(row=0, column=0) | |
meeting_label.grid(row=1, column=0) | |
image_label.grid(row=2, column=0) | |
date_text.grid(row=3, column=0) | |
time_text.grid(row=4, column=0) | |
place_text.grid(row=5, column=0) | |
#mainloop | |
company_meeting_page.mainloop() | |
open_company_meeting_page() |