IntInput Module

kniteditor.IntInput.make_integer(string)[source]

Extract the interger from a string.

Parameters:string (str) – the string to make to an integer
Returns:the string as an integer
Return type:str
class kniteditor.IntInput.IntInput(**kwargs)[source]

Bases: kivy.uix.textinput.TextInput

An input that only takes integers.

insert_text(substring, from_undo=False)[source]

When text is inserted.

on_text(instance, text)[source]

When the text changes, change the value.

on_value(instance, value)[source]

when the value changes, change the text.

value

the value as an integer