Skip to content

Releases: pglet/pglet-python

0.7.2

14 Mar 17:21
d6b9e31
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.7.1...v0.7.2

0.7.1

22 Feb 20:02
ff9206d
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.7.0...v0.7.1

0.7.0

17 Feb 19:32
2d114d7
Compare
Choose a tag to compare

Works with Pglet Server 0.7.0.

New SplitStack control (based on split.js) which could be used as a drop-in replacement for Stack, but with resize gutters instead of gaps. Check out SplitStack control example.

New TextBox control properties:

  • shiftEnter (bool) - blocks ENTER button in multiline TextBox, but pops up the event, so Stack.submit could be triggered. New line could still be entered with SHIFT+ENTER. This is to build Discord-like message box.
  • rows (int) - sets initial size in rows of multiline TextBox.
  • resizable (bool) - controls whether multiline TextBox is resizable by the user. Default is true. autoAdjustHeight is still respected even if resizable is false.

Panel control changes:

  • blocking (bool) is now true by default.

border_style property in Image, IFrame, Stack and Text allows lists, for example:

stack.border_style = ["solid", "double"]  # top and bottom borders are solid, left and right are double

0.6.0

13 Feb 19:35
Compare
Choose a tag to compare
  • Works with Pglet Server 0.6.0.
  • Added focused property, focus and blur events to all input controls - paving the way to a proper validation support.
  • New Persona control.
  • New ComboBox control.
  • New page events: connect and disconnect for real-time chat-like experiences.
  • Harmonization of border styling propeties across Stack, Image, IFrame and Text controls: HTML-ish border property with mixed and confusing to non-web devs semantics (1px solid black or solid 1px black?) replaced with clean and simple border_style, border_width and border_color properties.
  • All boolean and enum-like properties are protected with beartype.
  • Fixed all control tests to ensure Pglet works nice with Python 3.7 and above. Big shout-out to @mikaelho for helping with that!
  • Black and isort was adopted as official formatting tools.
  • Generating platform-specific wheels (.whl) with one pglet executable inside only: smaller wheels - faster installation!