class ScrollingModal(ModalView):
def __init__(self, direction, view, reload_fn, **kwargs):
ModalView.__init__(self, **kwargs)
container = BoxLayout(orientation='vertical', size_hint=(0.95, 0.95))
self.add_widget(container)
container.add_widget(Button(text='X', on_press=self.dismiss, size_hint=(0.0375, 0.05), pos_hint={'right': 1}))
self.view = view
if direction == 'horizontal':
scroller = ScrollView(do_scroll_y=False)
self.view.bind(minimum_width=self.view.setter('width'))
else:
scroller = ScrollView(do_scroll_x=False)
self.view.bind(minimum_height=self.view.setter('height'))
scroller.add_widget(self.view)
self.bind(size=reload_fn)
self.bind(on_open=reload_fn)
container.add_widget(scroller)
self.view.bind(minimum_width=self.view.setter('width'))
File "kivy\_event.pyx", line 438, in kivy._event.EventDispatcher.bind (kivy\_event.c:6026)
KeyError: 'minimum_width'
ScrollingModal.__init__(self,
direction='horizontal',
view=BoxLayout(orientation='horizontal', size_hint=(None, 1)),
reload_fn=self.reload,
size_hint=(.95, .95),
auto_dismiss=False)
self.selector_view = BoxLayout(orientation='vertical', size_hint=(1, None))
self.selector = ScrollingModal(direction='vertical',
view= self.selector_view,
reload_fn=self.reload,
size_hint=(0.75, 0.75))
] [Kivy ] v1.9.1[INFO ] [Python ] v2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 32 bit (Intel)][INFO ] [Factory ] 179 symbols loaded[INFO ] [Image ] Providers: img_tex, img_dds, img_gif, img_sdl2 (img_pil, img_ffpyplayer ignored) [INFO ] [OSC ] using <thread> for socket[INFO ] [Window ] Provider: sdl2[INFO ] [GL ] GLEW initialization succeeded[INFO ] [GL ] OpenGL version <4.4.0 - Build 20.19.15.4424>[INFO ] [GL ] OpenGL vendor <Intel>[INFO ] [GL ] OpenGL renderer <Intel(R) HD Graphics 400>[INFO ] [GL ] OpenGL parsed version: 4, 4[INFO ] [GL ] Shading version <4.40 - Build 20.19.15.4424>[INFO ] [GL ] Texture max size <16384>[INFO ] [GL ] Texture max units <32>[INFO ] [Shader ] fragment shader: <WARNING: 0:7: '' : #version directive missing>[INFO ] [Shader ] vertex shader: <WARNING: 0:7: '' : #version directive missing>[INFO ] [Window ] auto add sdl2 input provider[INFO ] [Window ] virtual keyboard not allowed, single mode, not docked[INFO ] [Text ] Provider: sdl2 Traceback (most recent call last): File "kivyTB.py", line 14, in <module> app.run() File "C:\Python27\lib\site-packages\kivy\app.py", line 802, in run root = self.build() File "kivyTB.py", line 10, in build return EternalCrusadeWidget(api) File "C:\Users\noobiemcfoob\Dropbox\db\bwroot\repos\eternal_crusade\EternalCrusade\EternalCrusadeWidget.py", line 121, in __init__ self.ac = AbilityCards(world) File "C:\Users\noobiemcfoob\Dropbox\db\bwroot\repos\eternal_crusade\EternalCrusade\AbilityCards.py", line 37, in __init__ auto_dismiss=False) File "C:\Users\noobiemcfoob\Dropbox\db\bwroot\repos\eternal_crusade\EternalCrusade\AbilityCards.py", line 20, in __init__ self.view.bind(minimum_width=self.view.setter('width')) File "kivy\_event.pyx", line 438, in kivy._event.EventDispatcher.bind (kivy\_event.c:6026) KeyError: 'minimum_width'
> <mailto:kivy-users+unsub...@googlegroups.com>.