Skip to content

format code with autopep8 #2815

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 22 additions & 10 deletions Portfolio/index.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import tkinter as tk
from tkinter import ttk


class PortfolioApp(tk.Tk):
def __init__(self):
super().__init__()
Expand All @@ -11,15 +12,18 @@ def __init__(self):

def create_widgets(self):
# Create a label for the title
title_label = ttk.Label(self, text="Welcome to My Portfolio", font=("Helvetica", 16))
title_label = ttk.Label(
self, text="Welcome to My Portfolio", font=("Helvetica", 16))
title_label.pack(pady=10)

# Create a button to go to the projects page
projects_button = ttk.Button(self, text="View Projects", command=self.show_projects)
projects_button = ttk.Button(
self, text="View Projects", command=self.show_projects)
projects_button.pack(pady=5)

# Create a button to show more information
more_info_button = ttk.Button(self, text="More Information", command=self.show_more_info)
more_info_button = ttk.Button(
self, text="More Information", command=self.show_more_info)
more_info_button.pack(pady=5)

# Create a button to exit the app
Expand All @@ -32,14 +36,17 @@ def show_projects(self):
projects_window.geometry("400x300")

# Create a label for the projects page
projects_label = ttk.Label(projects_window, text="List of Projects", font=("Helvetica", 16))
projects_label = ttk.Label(
projects_window, text="List of Projects", font=("Helvetica", 16))
projects_label.pack(pady=10)

# Create project descriptions (you can add more as needed)
project1_label = ttk.Label(projects_window, text="Project 1: Description of project 1.")
project1_label = ttk.Label(
projects_window, text="Project 1: Description of project 1.")
project1_label.pack(pady=5)

project2_label = ttk.Label(projects_window, text="Project 2: Description of project 2.")
project2_label = ttk.Label(
projects_window, text="Project 2: Description of project 2.")
project2_label.pack(pady=5)

def show_more_info(self):
Expand All @@ -48,19 +55,24 @@ def show_more_info(self):
info_window.geometry("400x300")

# Create labels for more information
info_label = ttk.Label(info_window, text="Experience, Skills, and Contact Details", font=("Helvetica", 16))
info_label = ttk.Label(
info_window, text="Experience, Skills, and Contact Details", font=("Helvetica", 16))
info_label.pack(pady=10)

# Add more labels here for additional information about yourself
experience_label = ttk.Label(info_window, text="Experience: Describe your work experience here.")
experience_label = ttk.Label(
info_window, text="Experience: Describe your work experience here.")
experience_label.pack(pady=5)

skills_label = ttk.Label(info_window, text="Skills: List your skills here.")
skills_label = ttk.Label(
info_window, text="Skills: List your skills here.")
skills_label.pack(pady=5)

contact_label = ttk.Label(info_window, text="Contact: Your contact details (email, phone, etc.).")
contact_label = ttk.Label(
info_window, text="Contact: Your contact details (email, phone, etc.).")
contact_label.pack(pady=5)


if __name__ == "__main__":
app = PortfolioApp()
app.mainloop()