Font:
BoxLayout:
size: root.width, root.height
Button:
text: "Count"
on_press: root.button_click()
font_size: "100dp"
Label:
text: root.digit
font_name: "font/LCD.ttf"
font_size: "200dp"
-----------------
#font.py
from kivy.app import App
from kivy.base import runTouchApp
from kivy.uix.widget import Widget
class Float(Widget):
pass
class FloatApp(App):
def build(self):
return Float()
FloatApp().run()
--------------------------
reference:
.ttf download
No comments:
Post a Comment