python - how to embed priority between image objects -


i have 1 image, , 1 draggable object in shape of apple.

the apple shape not appear because background image layer presented on top of layer apple shape in it.

how can ensure apple shape topmost layer?

dev_environment: kivy1.9.2 on python 3.4/windows

mn.py code

from kivy.uix.widget import widget kivy.uix.behaviors import dragbehavior kivy.uix.image import image kivy.app import app kivy.properties import stringproperty  class apple_0(dragbehavior,widget):     def on_touch_move(self,touch):                 return super(apple_0, self).on_touch_move(touch)  class base_0(image, widget):     def basepicture_0(self):         return image  class mn(widget):     pass  class mnapp(app):     def build(self):         return mn()  if __name__=='__main__':     mnapp().run() 

mn.kv code

<mn>:     canvas:         color:             rgb: 1,1,1,1         rectangle:             size: root.width,root.height             pos: 0,0      label:         pos: 0,root.top- 70         text:             ('[size=10][color=000000]'             'fnc_slide_0'             '[/color][/0ize]')         markup: true      apple_0:         id: apple_0_id         pos: root.width/2.5,root.height/2      base_0:         id: base_0_id         pos: root.width/7, root.height/3  <apple_0>:     size: 75,75     drag_rectangle: self.x, self.y, self.width, self.height     drag_timeout: 10000000     drag_distance: 0     canvas:         rectangle:             pos: self.pos             size: self.size             source: 'apple_0.png'  <base_0>     size: 1041,411     canvas:         rectangle:             pos: self.pos             size: self.size             source: 'base_0.png' 


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -