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 inmultilineTextBox, but pops up the event, soStack.submitcould 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 ofmultilineTextBox.resizable(bool) - controls whethermultilineTextBox is resizable by the user. Default istrue.autoAdjustHeightis still respected even ifresizableisfalse.
Panel control changes:
blocking(bool) is nowtrueby 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 double0.6.0
- Works with Pglet Server 0.6.0.
- Added
focusedproperty,focusandblurevents to all input controls - paving the way to a proper validation support. - New
Personacontrol. - New
ComboBoxcontrol. - New page events:
connectanddisconnectfor real-time chat-like experiences. - Harmonization of border styling propeties across
Stack,Image,IFrameandTextcontrols: HTML-ishborderproperty with mixed and confusing to non-web devs semantics (1px solid blackorsolid 1px black?) replaced with clean and simpleborder_style,border_widthandborder_colorproperties. - 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 onepgletexecutable inside only: smaller wheels - faster installation!