Note: for further information about specific classes and methods visit the documentation on ReadTheDocs.org.
This release is available in the attachments and on the Python Package Index here.
Changes since 1.10.1, in no particular order:
- Bumped versions of most dependencies
- Officially added support for newer Python versions, up to 3.9
- Added parameter to createWindow to allow overriding the resource manager class
- Added parameters to Label widget to allow overriding anchor of underlying pyglet Label
- Added support for custom per-widget fonts for all button types
- Added peng3d:i18n.miss event
- Added redraw and on_redraw methods to Layer
- Added getTexSize() to resourceManager
- Added support for changing texture parameters per-category
- Finally fixed FramedImageBackground and added some advanced parameters for customization
- Added peng3d.gui.layered.FramedImageWidgetLayer
- Improved modularity of Backgrounds and Widgets, e.g. most widgets now support arbitrary backgrounds without requiring custom methods
- Added font size, color and family support to dialogs
- Cursor position of TextInput is now correct when initialized with text already in the text field
- Added missing texture events
- SubMenus can now inherit their backgrounds from their Menus
- Added inheritance for font parameters and borderstyle
- Added layout helper classes with several examples
- Allow easier specification of resources in some Widgets with ResourceManager.normTex
- Added stay_pressed attribute to all widgets
- Added support for multi-line translation values
- Added support for formatting translated strings
- Mostly fixed ScrollableContainer
- Added mouse-based scrolling to ScrollableContainer
- Added visible property to BasicWidget
- All labels of Buttons and Labels now have layers
- Added layering system for non-custom-drawn widgets
- Improved performance for some mouse event handlers
- NOTE: this may cause issues if you have previously used mouse actions in labels. See Widget.IS_CLICKABLE in the docs for more information.
- Added basic form support
- Added password input field
- Text input fields now ignore return key presses by default
- Added per-window FPS limiting
- Fixed i18n language discovery on Windows
- Added rate-limited pyglet event handlers that are only called once per on_draw
- Switched on_mouse_motion and on_resize to rate-limited handlers for a massive performance improvement upon rapid mouse movement
- Improved performance when calculating widget size
In total, 47 files were changed with 2367 additions and 628 deletions.