Releases: pglet/pglet-python
Releases · pglet/pglet-python
0.7.2
0.7.1
What's Changed
- Border styling props in Stack, Text, Image and IFrame allow either single value or a list by @FeodorFitsner in #68
- All boolean control props have default values by @FeodorFitsner in #69
- Control Refs by @FeodorFitsner in #70
Full Changelog: v0.7.0...v0.7.1
0.7.0
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 inmultiline
TextBox, but pops up the event, soStack.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 ofmultiline
TextBox.resizable
(bool) - controls whethermultiline
TextBox is resizable by the user. Default istrue
.autoAdjustHeight
is still respected even ifresizable
isfalse
.
Panel
control changes:
blocking
(bool) is nowtrue
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
- Works with Pglet Server 0.6.0.
- Added
focused
property,focus
andblur
events to all input controls - paving the way to a proper validation support. - New
Persona
control. - New
ComboBox
control. - New page events:
connect
anddisconnect
for real-time chat-like experiences. - Harmonization of border styling propeties across
Stack
,Image
,IFrame
andText
controls: HTML-ishborder
property with mixed and confusing to non-web devs semantics (1px solid black
orsolid 1px black
?) replaced with clean and simpleborder_style
,border_width
andborder_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 onepglet
executable inside only: smaller wheels - faster installation!