You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MDSmartTile "source" parameter accepts only objects of type StringProperty, whereas its nested SmartTileImage (based on FitImage) accepts objects of type ObjectProperty. This breaks the behaviour of being able to pass textures as the tile image source.
Fix:
The problem can be fixed by making the source parameter in MDSmartTile of type ObjectProperty.
Code and Logs
Notes:
An md_logo.png file is required to run the example, you can use any image as long as it's RGBA.
I've run the example in kivymd==1.0.2, but I have checked and the code is still the same in the latest version.
I want to use MDSmartTile and RecycleView to make a gallery app.
I only want to load thumbnails, instead of the full images.
I use PIL to make the thumbnails, then convert them to kivy textures.
FitImage accepts texture as source.
Since your code uses FitImage as a base for SmartTileImage, passing a texture to MDSmartTile should be permitted.
Description of the Bug
"ValueError: MDSmartTile.source accept only str"
MDSmartTile "source" parameter accepts only objects of type StringProperty, whereas its nested SmartTileImage (based on FitImage) accepts objects of type ObjectProperty. This breaks the behaviour of being able to pass textures as the tile image source.
Fix:
Code and Logs
Notes:
Versions
The text was updated successfully, but these errors were encountered: