@@ -98,7 +98,7 @@ def set_colors(self):
9898
9999class  ImageIcon (MDButtonIcon , AsyncImage ):
100100    def  __init__ (self , * args , ** kwargs ):
101-         super ().__init__ (args , kwargs )
101+         super ().__init__ (* args , ** kwargs )
102102        self .image  =  ApAsyncImage (** kwargs )
103103        self .add_widget (self .image )
104104
@@ -183,15 +183,17 @@ def __init__(self, *args, **kwargs):
183183                height_rule  =  subclass .properties .get ("height" , None )
184184                if  height_rule :
185185                    height_rule .ignore_prev  =  True 
186-         super ().__init__ (args , kwargs )
186+         super ().__init__ (* args , ** kwargs )
187187
188188
189189def  on_release (self : MDButton , * args ):
190190    super (MDButton , self ).on_release (args )
191191    self .on_leave ()
192192
193+ 
193194MDButton .on_release  =  on_release 
194195
196+ 
195197# I was surprised to find this didn't already exist in kivy :( 
196198class  HoverBehavior (object ):
197199    """originally from https://stackoverflow.com/a/605348110""" 
@@ -904,7 +906,7 @@ def connect_bar_validate(sender):
904906                                    pos_hint = {"center_y" : 0.575 })
905907        info_button .bind (on_release = self .command_button_action )
906908        bottom_layout .add_widget (info_button )
907-         self .textinput  =  CommandPromptTextInput (size_hint_y = None , height = dp ( 30 ),  multiline = False , write_tab = False )
909+         self .textinput  =  CommandPromptTextInput (size_hint_y = None , multiline = False , write_tab = False )
908910        self .textinput .bind (on_text_validate = self .on_message )
909911        info_button .height  =  self .textinput .height 
910912        self .textinput .text_validate_unfocus  =  False 
0 commit comments