![]() texture def on_texture_wrap ( self, instance, value ): self. texture_init, 0 ) def texture_init ( self, * args ): self. ''' from import Widget from kivy.properties import ObjectProperty, ListProperty, StringProperty from kivy.lang import Builder from kivy.clock import Clock from kivy.base import runTouchApp class TextureAccessibleWidget ( Widget ): texture = ObjectProperty ( None ) tex_coords = ListProperty () texture_wrap = StringProperty ( 'clamp_to_edge' ) def _init_ ( self, ** kwargs ): super ( TextureAccessibleWidget, self ). Sliders change the number of copies of the texture (the tex_coords), the size of enclosing rectangle (the taw_height and taw_width) while the buttons change how the texture is rendered when more than one copy is in the rectangle (the texture_wrap). The image texture_example_image.png is rendered into the rectangle. You should see some a multicolored texture with sliders to the left and below and buttons at the bottom of the screen. ''' Texture Wrapping and Coordinates Example = This example changes texture properties and the properties of its containing rectangle. Common definitions for a Windows provider.Auto Create Input Provider Config Entry for Available MT Hardware (linux only).Native support for Multitouch devices on Linux, using libmtdev.Native support of MultitouchSupport framework for MacBook (MaxOSX platform).Native support of Wacom tablet from linuxwacom driver.Native support for HID input from the linux kernel.Compatibility module for Python 2.7 and >= 3.4.Touch Tracer Line Drawing Demonstration.Multistroke Recognition Database Demonstration.Texture Wrapping and Coordinates Example.Application example using build() + return.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |