CInput

4.6★ 31 ratings
1.4k+ Downloads
.py Format

About this app

Requires PythonExtra runtime to execute.

CInput is a standalone UI library for PythonExtra that adds touchscreen keyboard input, themed dialogs, and list pickers to ClassPad II applications. Build interactive apps with minimal boilerplate.

Features

  • Touchscreen keyboard: QWERTY, AZERTY, QWERTZ, and ABC layouts
  • Themed UI: light, dark, and grey themes with consistent styling
  • Input dialogs: text, integer, and float entry with validation
  • List pickers: single and multi-select list interfaces
  • Modal system: non-blocking dialogs that integrate with event loops
  • Lightweight: single-file dependency, ~10 KB footprint

Quick Start

import cinput

# Text input
name = cinput.input("Enter your name:", type="text", theme="dark")

# List picker
choice = cinput.pick(["Option A", "Option B", "Option C"], "Select one")

# Multi-select
items = cinput.pick(["Item 1", "Item 2", "Item 3"], "Pick many", multi=True)

Documentation

Consult the reference for full API details: input(), pick(), Keyboard, get_theme(), and theme customization.

Requirements

  • CASIO ClassPad II (fx-CP400)
  • Hollyhock-3 firmware
  • PythonExtra runtime

Used By

CInput powers UI components in apps like CED (ClassPad Editor), CPaint, and CPTime. Copy cinput.py to your calculator root directory to enable imports in your own scripts.

A practical foundation for touch-enabled Python apps on calculator hardware.