예제 #1
0
 def test_kivy_awesome_wrong_version(self):
     with self.assertRaises(ValueError):
         kivysome.enable("11.11.11")
예제 #2
0
 def test_kivy_awesome_invalid_version(self):
     with self.assertRaises(ValueError):
         kivysome.enable("v0")
예제 #3
0
 def test_kivy_awesome_wrong_url(self):
     with self.assertRaises(ValueError):
         kivysome.enable("https://google.com")
예제 #4
0
 def test_kivy_awesome_invalid_url(self):
     with self.assertRaises(ValueError):
         kivysome.enable("invalid")
예제 #5
0
 def test_kivy_awesome_latest(self):
     kivysome.enable(kivysome.LATEST, force=True)
예제 #6
0
 def test_kivy_awesome_version(self):
     kivysome.enable("5.13.1", force=True)
예제 #7
0
 def test_kivy_awesome_regular(self):
     # DO NOT COPY THIS LINK!
     # Generate your own here: https://fontawesome.com/kits
     kivysome.enable("https://kit.fontawesome.com/23372bf9a2.js",
                     force=True)
예제 #8
0
import logging

DB_VERSION="1.2.0"

if __name__ == "__main__":

    # Start the Kivy app
    import kivysome
    from screens.main_screen import IPASApp

    kivysome.enable(source='5.14.0', group=kivysome.FontGroup.REGULAR, font_folder="./assets/fonts/fontsawesome")
    kivysome.enable(source='5.14.0', group=kivysome.FontGroup.REGULAR, font_folder="./assets/fonts/fontsawesome")
    
    IPASApp(db=None, warn_processor=None).run()
예제 #9
0
        markup: True
        text: "%s"%(icon('circle-notch', 32))
        font_color: 1, 0, 0, 1
        p: 0
        canvas:
            Clear
            PushMatrix
            Rotate:
                angle: -self.p
                origin: self.center_x , self.center_y
            Rectangle:
                size: (32, 32)
                pos: self.center_x - 16, self.center_y - 16
                texture: self.texture
            PopMatrix
    """

    # DO NOT COPY THIS LINK!
    # Generate your own here: https://fontawesome.com/kits
    kivysome.enable(
        "https://kit.fontawesome.com/045c3333e7.js",
        group=FontGroup.SOLID,
        font_folder="../fonts",
    )

    root = Builder.load_string(kv)
    an = Animation(p=360, duration=2) + Animation(p=0, duration=0)
    an.repeat = True
    an.start(root.ids["_anim"])
    runTouchApp(root)