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 easier API and cleaner, simpler configuration options.


Usage

import anthos
import tkinter as tk

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
anthos = anthos.WaveWidget(
    main_window,
    path_to_audio,
    cnf,
    wave_cnf
)

# Draw the waveform
anthos.draw()

# The class inherits from tkinter.Canvas
anthos.place()

# Update standard canvas configuration
anthos.config(cnf)

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.0.tar.gz (14.4 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.0-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: anthos-1.0.0.tar.gz
  • Upload date:
  • Size: 14.4 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.0.tar.gz
Algorithm Hash digest
SHA256 2ca2f4bcfea9e716e28e09aa704e99920e1f617a8bd0daa0b73f7c28d5a91d71
MD5 6d7d7626fc850e881a71ec43d5c0b447
BLAKE2b-256 c854ac421eea8423800961a98cae499df383a20101b729a68b3eb7e9153d3b99

See more details on using hashes here.

File details

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

File metadata

  • Download URL: anthos-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 14.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c71f2b32a9459755c53b1bd73165595afc9878e3f48822e702f071f470ee694
MD5 0e9411ffe8fc41df9e163701af5cc41f
BLAKE2b-256 da77d4561c411fb0677951635cb33692adc30c54d28715d7d25253ed9004127f

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