Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

numberfield-flet

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

numberfield-flet

A custom Flet TextField that only accepts numerical input (int or float).

  • 1.0.0
  • PyPI
  • Socket score

Maintainers
1

numberfield_flet

My take of creating a number input field in Flet.

  • Supports both float and integer inputs
  • Supports user-defined on_change callbacks

Install it from PyPI

pip install numberfield-flet

Usage

import flet as ft
from numberfield_flet import NumberField

def user_defined_on_change(e):
    print(f"User-defined on_change event: {e.control.value}")


def main(page: ft.Page):
    page.title = "Number Inputter"
    custom_text_field = NumberField(on_change=user_defined_on_change, input_type="float",
                                    label="Enter a float number here: ")
    page.add(custom_text_field)

Development

Email me if you have any questions!

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc