Improvements
- Add
FletApp.wait_idle(idle_ms, timeout_ms): a host app can wait until an embedded app has rendered its UI and gone quiet - for example before taking a screenshot of it or reading its output after a restart. It returnsidle,error(the app failed to start or crashed) ortimeout, and costs nothing unless a call is pending (#6901) by @FeodorFitsner. - Add
TextField.on_paste_files: pasted files (a screenshot, an image copied from a web page, files copied in the OS file manager) arrive asname,mime_typeandbytes, e.g. to attach them to a chat message. On the web it uses the browser's paste event, so it works in every browser, Safari included, with no clipboard permission prompt; on desktop,Ctrl/Cmd+Vreports a clipboard image (#6901) by @FeodorFitsner.
Bug fixes
- Fix
Dropdown.expanded_insetshaving no effect whenexpandis set (#6895, #6896) by @xsalaices. - Fix
Tabsignoring a newselected_indexset together with a newlength- e.g. inserting a tab before the selected one and movingselected_indexto follow it selected the inserted tab instead (#6901) by @FeodorFitsner. - Fix controls losing their state (a
TextFieldits focus and cursor, a list its scroll position) when a sibling before them in aColumn,Rowor other multi-child control became visible or hidden: children were matched by position, so the shift rebuilt them. Children are now matched by control id (#6901) by @FeodorFitsner. - Fix
FilePicker.upload()with several files uploading the wrong file to each URL: after the first upload, each file'sidpointed at the next picked file, so a file's bytes went to another file's URL and the last file never uploaded (its caller waited forever). Picked files now keep theiridacrossupload()calls, and files that can't be found report an upload error (#6901) by @FeodorFitsner. - Fix
FletApp.on_errornot firing when the embedded app crashes inmain()or in an event handler - the error only showed inside the embedded app. The host is now notified, ason_errordocuments (#6901) by @FeodorFitsner.
Full Changelog: v1.0.2...v1.0.3