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/company_events.py
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
51 lines (25 sloc)
1.7 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 * | |
lorem_ipsum ="""Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse maximus fringilla ipsum, et ornare lectus imperdiet sit amet. Etiam | |
feugiat quam ligula, at laoreet leo blandit vel. Nullam ornare tellus a tellus accumsan, id euismod erat aliquet. Pellentesque blandit justo a | |
rutrum scelerisque. In commodo euismod felis sed tempor. In hac habitasse platea dictumst. Maecenas ornare nec ipsum at lobortis. Sed | |
ac odio felis. Ut vitae magna quis augue lacinia suscipit vel quis ante. Quisque a sodales quam. Duis vulputate, metus imperdiet accumsan | |
venenatis, purus felis aliquam libero, ut rhoncus magna turpis a ipsum. Ut vestibulum, lacus sed molestie tristique, magna magna | |
accumsan felis, vel suscipit ipsum nunc nec nulla. Donec sed luctus lorem. Curabitur in turpis imperdiet, feugiat justo id, finibus tellus. | |
Quisque iaculis eu risus id fermentum.""" | |
def open_company_events_page(): | |
company_events_page = Toplevel() | |
company_events_page.title("Company Events") | |
company_events_page.geometry("940x720") | |
#Labels | |
jawara_label = Label(company_events_page, text="Jawara", font="Verdana 24 bold", fg="Red") | |
events_label = Label(company_events_page, text= "Latest Events", font= "Verdana 20", fg="Black") | |
placeholder_text = Label(company_events_page, text=lorem_ipsum, font="Verdana 10", bg="Light Blue") | |
date_label = Label(company_events_page, text="Today", font="Verdana 12") | |
#Grid arrangement | |
jawara_label.grid(row=0, column=0) | |
events_label.grid(row=1, column=0) | |
date_label.grid(row=2, column=0) | |
placeholder_text.grid(row=3, column=0) | |
#mainloop | |
company_events_page.mainloop() | |
open_company_events_page() | |