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/DesignSpecifications.py
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
36 lines (27 sloc)
1.21 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 designSpecTest import * | |
#Main page | |
design_spec_root = Tk() | |
design_spec_root.title("Design Specifications") | |
design_spec_root.geometry("1280x720") | |
#Function that redirects page | |
def nextpage(): | |
import designSpecTest | |
#Labels | |
empty_label = Label(design_spec_root, text=" ") | |
jawara_label = Label(design_spec_root, text="Jawara", font="Verdana 24 bold", fg="Red") | |
title_label = Label(design_spec_root, text="Design Specifications", font=("Verdana 23 bold"), fg="Black") | |
#Buttons | |
button_roadster = Button(design_spec_root, text = "Roadster", height=9, width=20, command= open_roadster_page ) | |
button_SUV = Button(design_spec_root, text="Sport Utility Vehicle (SUV)",height=9, width=20, command= open_suv_page) | |
button_hatchback = Button(design_spec_root, text="Hatchback",height = 9, width=20, command= open_hatchback_page) | |
button_sedan = Button(design_spec_root, text="Sedan",height=9, width=20, pady=45, command= open_sedan_page) | |
#Grid arragement | |
jawara_label.grid(row = 0, column = 0) | |
title_label.grid(row = 0, column = 2) | |
button_roadster.grid(row=2, column=0) | |
button_SUV.grid(row=3, column=0) | |
button_hatchback.grid(row=4, column=0) | |
button_sedan.grid(row=5, column=0) | |
#Mainloop | |
design_spec_root.mainloop() |