My problem is that neither the Button (btn), nor the BoxLayout (item)
are defined in the .kv file. Both are defined in code as shown below.
layout is defined in the .kv file as a BoxLayout within a ScrollView
item = BoxLayout(orientation='horizontal', height=line_height,
width=self.width)
btn = Button(font_size=16, padding=[5,1])
btn.add_widget(item)
layout.add_widget(btn)
This means that I need to do the bindings in python, not kvlang.
Also, could you elaborate on creating the custom widget inheriting from
Button and BoxLayout. Again, since item is created in code and has no
kvlang component, I'm not following how to put it all together.
>>>> email
tokivy-users...@googlegroups.com.
>>>> For more options, visithttps://
groups.google.com/d/optout.
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Kivy users support" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email
tokivy-users...@googlegroups.com.
>> For more options, visithttps://
groups.google.com/d/optout.