/usr/share/kivy-examples/widgets/label_mipmap.py is in python-kivy-examples 1.9.1-1build3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | '''
Label mipmap
============
This show how to create a mipmapped label, and the visual difference between a
non mipmapped and mipmapped label.
'''
import kivy
kivy.require('1.0.7')
from kivy.app import App
from kivy.uix.scatter import ScatterPlane
from kivy.uix.label import Label
class LabelMipmapTest(App):
def build(self):
s = ScatterPlane(scale=.5)
l1 = Label(text='Kivy rulz', font_size=98, pos=(400, 100), mipmap=True)
l2 = Label(text='Kivy rulz', font_size=98, pos=(400, 328))
s.add_widget(l1)
s.add_widget(l2)
return s
if __name__ == '__main__':
LabelMipmapTest().run()
|