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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for kivy_pinview-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c6e04c9a00a06f261fe22195ba58b0e1d74bc6928a762ada00d4831a11a653b |
|
MD5 | 72e246cf81ca90c2a03121afb3893b70 |
|
BLAKE2b-256 | beade2de709fb9c288d62fd4774a643b9fe3afb1274f740ce6c2a3150c2c210f |