Skip to content

Commit

Permalink
almost done now
Browse files Browse the repository at this point in the history
  • Loading branch information
KorryKatti committed Apr 8, 2024
1 parent 11923d9 commit 576aeff
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions index.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,16 +502,32 @@ def devmenu_callback(choice):
response.raise_for_status() # Raise an exception for HTTP errors
changelog_data = response.json()

# Extract changelog text from JSON data
changelog_text = changelog_data.get("changelog", "No changelog available")
# Extract changelog data
changelog_entries = changelog_data.get("changelog", [])

# Display changelog
for entry in changelog_entries:
version = entry.get("version", "")
changes = entry.get("changes", [])

# Display version
version_label = ctk.CTkLabel(scrollable_frame, text=f"**{version}**")
version_label.pack(fill=ctk.X, padx=10, pady=5)

# Display changes
for change in changes:
change_label = ctk.CTkLabel(scrollable_frame, text=change)
change_label.pack(fill=ctk.X, padx=20, pady=2)

# Add separator line
separator = ctk.CTkLabel(scrollable_frame, text="------------------------------------------")
separator.pack(fill=ctk.X, padx=10, pady=5)

# Display changelog in a label
changelog_label = ctk.CTkLabel(scrollable_frame, text=changelog_text)
changelog_label.pack(fill=ctk.X, padx=10, pady=10)
except Exception as e:
print(f"Error fetching changelog: {e}")



#mozart from
# https://freemusicarchive.org/music/Brendan_Kinsella/Mozarts_Piano_Sonata_in_B-flat_Major/Mozart_-_Piano_Sonata_in_B-flat_major_III_Allegretto_Grazioso/
# Define the function to start playing the music after 11 seconds
Expand Down

0 comments on commit 576aeff

Please sign in to comment.