Skip to content

v1.1

Latest

Choose a tag to compare

@github-actions github-actions released this 19 Aug 14:40

gui

Extended gui's API so drawable classes share a common API and behavior.

Display

  • Added getX() / setX(), getY() / setY(), getCenter(), getCenterX(), and getCenterY().
  • Every Display.draw...() method now takes a visibility argument: drawRectangle(), drawOval(), drawCircle(), drawPoint(), drawArc(), drawArcCircle(), drawPolyline(), drawLine(), drawPolygon(), drawIcon(), drawLabel(), and drawText().

Group

  • add() and addOrder() now accept optional x and y, matching Display's methods.
  • Added removeAll(), matching Display's methods.

Icon

  • Fixed a bug with color, fill, and thickness not taking effect. Icons now draw against a backing rectangle styled by these properties.
  • Accepts backgroundColor, fill, and thickness when created, with getBackgroundColor() / setBackgroundColor() to change the background later.
  • getPixels() and setPixels() now document existing alpha (transparency) channel support.

Controls

  • Every Control (Button, CheckBox, Slider, DropDownList, TextField, TextArea) now accepts rotation and visibility arguments when created, and inherits setRotation() / getRotation().
  • All Controls now have getColor() to pair with the existing setColor().
  • Slider now accepts a color when created.
  • Slider background color now renders correctly.

MusicControls

HFader, VFader, Rotary, Push, Toggle, and XYPad can now be styled directly using the common graphics methods, and a few extra methods specific to MusicControls:

Common:

  • getColor() / setColor()
  • getFill() / setFill()
  • getThickness() / setThickness()

MusicControls:

  • getForegroundColor() / setForegroundColor()
  • getBackgroundColor() / setBackgroundColor()
  • getOutlineColor() / setOutlineColor()

music

  • Fixed a bug with Phrase() failing to build from a single note. As a result, one-note instances of Play.midi() would fail to play.
  • Added MidiSequence.setVolume() and getVolume() to scale playback loudness (0 to 127).
  • Fixed the default soundfont download, which saved the file under a scrambled name.

PEM

  • The shell no longer prints Python's stale copyright line at startup and on reset.
  • IDLE's PSF license now ships with the application.

PythonMusic Site

Full Changelog: v1.0...v1.1