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 tkwavewidget as 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.1.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.1-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: anthos-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 56e967698a425bdf22e0490290c5fcbad17e1d6ebf7606b08beebe17be8459f7
MD5 a4d51a2941a7e7bd3e5fe88ab51260b5
BLAKE2b-256 c0211a9ee62abfa8656a7cfae49552bc044548eefd78cacc0ba955d3c8c8dd11

See more details on using hashes here.

File details

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

File metadata

  • Download URL: anthos-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 af255687e494b482561c00fab99497983b3123aea8c7addeeb18ae7693699707
MD5 d19e80a4a09edd90797c8ec6cf4750e4
BLAKE2b-256 f9e4b3f923456e419ed8f735d6c34c9568a76df3ce889ff9642a089033a5c80d

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