kivymd / KivyMD

KivyMD is a collection of Material Design compliant widgets for use with Kivy, a framework for cross-platform, touch-enabled graphical applications. https://youtube.com/c/KivyMD https://twitter.com/KivyMD https://habr.com/ru/users/kivymd https://stackoverflow.com/tags/kivymd
https://kivymd.readthedocs.io
MIT License
2.2k stars 662 forks source link

FocusBehavior incoherent between Kivy and KivyMD #1424

Open cederom opened 1 year ago

cederom commented 1 year ago

Description of the Bug

Code and Logs

Screenshots

Why not replace current KivyMD code:

from kivy.app import App
from kivy.properties import BooleanProperty, ColorProperty
from kivy.uix.behaviors import ButtonBehavior

from kivymd.uix.behaviors import HoverBehavior

class FocusBehavior(HoverBehavior, ButtonBehavior):
(...)

with:

from kivy.app import App
from kivy.properties import BooleanProperty, ColorProperty
from kivy.uix.behaviors import ButtonBehavior

from kivymd.uix.behaviors import HoverBehavior
from kivymd.uix.behaviors import FocusBehavior

class MDFocusBehavior(FocusBehavior, HoverBehavior, ButtonBehavior):
(...)

Versions

cederom commented 1 year ago

Hey there @HeaTTheatR :-)

This issue is not completed. It shoud be reopened and resolved.

Thanks :-)

cederom commented 1 year ago

Thanks @HeaTTheatR :-) I can provide some patches.. are there other things to consider except the name change? :-)

HeaTTheatR commented 1 year ago

@cederom We need to test all library modules that use the FocusBehavior class.