gui
Extended gui's API so drawable classes share a common API and behavior.
Display
- Added
getX()/setX(),getY()/setY(),getCenter(),getCenterX(), andgetCenterY(). - Every
Display.draw...()method now takes avisibilityargument:drawRectangle(),drawOval(),drawCircle(),drawPoint(),drawArc(),drawArcCircle(),drawPolyline(),drawLine(),drawPolygon(),drawIcon(),drawLabel(), anddrawText().
Group
add()andaddOrder()now accept optionalxandy, 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, andthicknesswhen created, withgetBackgroundColor()/setBackgroundColor()to change the background later. getPixels()andsetPixels()now document existing alpha (transparency) channel support.
Controls
- Every Control (
Button,CheckBox,Slider,DropDownList,TextField,TextArea) now acceptsrotationandvisibilityarguments when created, and inheritssetRotation()/getRotation(). - All Controls now have
getColor()to pair with the existingsetColor(). Slidernow accepts acolorwhen 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 ofPlay.midi()would fail to play. - Added
MidiSequence.setVolume()andgetVolume()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
- removed from this repo and into its own PythonMusic-docs.
Full Changelog: v1.0...v1.1