Skip to content

Shake up of posting messages

Compare
Choose a tag to compare
@willmcgugan willmcgugan released this 09 Mar 15:03
· 3853 commits to main since this release

We've been busy!

There are a few breaking changes here, which we cover in the following blog post:

https://textual.textualize.io/blog/2023/03/09/textual-0140-shakes-up-posting-messages/

Here's the full release notes.

[0.14.0] - 2023-03-09

Changed

  • Breaking change: There is now only post_message to post events, which is non-async, post_message_no_wait was dropped. #1940
  • Breaking change: The Timer class now has just one method to stop it, Timer.stop which is non sync #1940
  • Breaking change: Messages don't require a sender in their constructor #1940
  • Many messages have grown a control property which returns the control they relate to. #1940
  • Updated styling to make it clear DataTable grows horizontally #1946
  • Changed the Checkbox character due to issues with Windows Terminal and Windows 10 #1934
  • Changed the RadioButton character due to issues with Windows Terminal and Windows 10 and 11 #1934
  • Changed the Markdown initial bullet character due to issues with Windows Terminal and Windows 10 and 11 #1982

Added

  • Added data_table attribute to DataTable events #1940
  • Added list_view attribute to ListView events #1940
  • Added radio_set attribute to RadioSet events #1940
  • Added switch attribute to Switch events #1940
  • Added hover and click methods to Pilot #1966
  • Breaking change: Added toggle_button attribute to RadioButton and Checkbox events, replaces input #1940
  • A percentage alpha can now be applied to a border #1863
  • Added Color.multiply_alpha.
  • Added ContentSwitcher #1945

Fixed

  • Fixed bug that prevented pilot from pressing some keys #1815
  • DataTable race condition that caused crash #1962
  • Fixed scrollbar getting "stuck" to cursor when cursor leaves window during drag #1968 #2003
  • DataTable crash when enter pressed when table is empty #1973