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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file kivy-pinview-0.0.1.tar.gz.

File metadata

  • Download URL: kivy-pinview-0.0.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for kivy-pinview-0.0.1.tar.gz
Algorithm Hash digest
SHA256 64c8a41391c76f82bdb6b1228d3ff81f748988bdeecc38a774ebaded33f71f08
MD5 99b17ee7ad91d1793a1229d77041fb57
BLAKE2b-256 fb7a2b6c0729a839ec9f79d90597d1eb4ab78c06c6841577a541152306315dab

See more details on using hashes here.

File details

Details for the file kivy_pinview-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: kivy_pinview-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for kivy_pinview-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6c6e04c9a00a06f261fe22195ba58b0e1d74bc6928a762ada00d4831a11a653b
MD5 72e246cf81ca90c2a03121afb3893b70
BLAKE2b-256 beade2de709fb9c288d62fd4774a643b9fe3afb1274f740ce6c2a3150c2c210f

See more details on using hashes here.

Supported by

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