Skip to main content

Make waveform widgets beautifully.

Project description

Anthos

A Tkinter-based waveform visualization widget using Canvas and librosa.

A fork of ostcrom’s python-tkinter-waveform-widget, with a simpler API and customizable waveform display options.


Usage

import tkinter as tk
from anthos import anthosWidget  # import your class

# Create main Tkinter window
main_window = tk.Tk()

# Standard Tkinter Canvas options
cnf = {
    "height": 100,
    "width": 500,
    "bg": "green"
}

# Waveform display options
wave_cnf = {
    "x_scale": 1,
    "y_scale": 5
}

path_to_audio = "test.mp3"

# Create waveform widget
widget = anthosWidget(
    master=main_window,
    path(path_to_audio)
    cnf=cnf,
    wave_cnf=wave_cnf
)

# Draw the waveform
widget.draw()

# The widget inherits from tkinter.Canvas, so you can use standard geometry methods
widget.place(x=10, y=10)

# Update standard canvas configuration dynamically
widget.config({"bg": "black", "width": 600})

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

anthos-1.0.3.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

anthos-1.0.3-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file anthos-1.0.3.tar.gz.

File metadata

  • Download URL: anthos-1.0.3.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for anthos-1.0.3.tar.gz
Algorithm Hash digest
SHA256 b35a5f73e0d77ff0328c941fcb34f5b0ef45dd880a22772c46c6754321ea2cf6
MD5 0b193b2311594900522335c121cc0222
BLAKE2b-256 454afa22ee1ed258c09b31f40d6e90c3a966bf3e0affc52ebd5462773465e5f4

See more details on using hashes here.

File details

Details for the file anthos-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: anthos-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for anthos-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4fa637214bd8cf8762363ec8ce51858df4302fd9b6d701af352363844bdb25d5
MD5 643e06dbf145188a684b80cd4a911760
BLAKE2b-256 a5b2119aade60008c7a81c5ebb0ef07b721f980e7265a8779812ea2127fa885f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page