Skip to main content

This is an android pinview implementation for kivy

Project description

kivy-pinview

This is an android pinview implementation for kivy You can use this platform to write your content.

installation:

    pip install kivy-pinview

uninstall:

    pip uninstall kivy-pinview

kivy-pinview

    This module is built using some ready to use kivy widgets like Label, TextInput, BoxLayout, FloatLayout etc.
    Structure:
            FloatLayout:
              -> TextInput:
              -> BoxLayout:
                  -> Labels:
    Working:
            On touching the view, TextInput takes focus and text entered in that is rendered to the Labels and on fully entering data into labels, on_otp(self, caller_obj, otp) is fired which can be overridden.
    Use:
            can be used to take otp(one time password) inputs...

Example:

    from kivy.lang import Builder
    from kivy.app import App

    kv = """
    #:import PinView kivy-pinview.PinView

    PinView:
            size_hint_x:.8
            pos_hint:{'center_x':.5,'center_y':.5}
        #Box Related:
            box_spacing:10
            box_radius:[5, 5]
            box_count:5

        #Text Related:
            text_color:[0,.4,1,1]
            default_text:'-'
            #font_name:'your_font_name.ttf'
            font_size:50
            markup:True
            on_otp:print(self.otp)

         #Box Canvas related:
            box_bg_color:[1,.4,1,1]
            #box_bg_image:'your_bg_image.jpg'
    """

    class MyApp(App):
        def build(self):
            return Builder.load_string(kv)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kivy-pinview-0.0.1.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

kivy_pinview-0.0.1-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page