Metadata-Version: 2.1
Name: sublinput
Version: 1.0.0
Summary: An input pygame alternative for sublime text users.
Home-page: https://github.com/Sigmanificient/pg-sublime-input
Author: Sigmanificient
Author-email: Edhyjox@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Description-Content-Type: text/markdown

# Sublinput
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Sigmanificient/pg-sublime-input/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Sigmanificient/pg-sublime-input/?branch=master)
[![Build Status](https://scrutinizer-ci.com/g/Sigmanificient/pg-sublime-input/badges/build.png?b=master)](https://scrutinizer-ci.com/g/Sigmanificient/pg-sublime-input/build-status/master)
![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/Sigmanificient/pg-sublime-input)
![Lines of code](https://img.shields.io/tokei/lines/github/Sigmanificient/pg-sublime-input)

A sublime pygame ui as alternative to unsupported python input built-in.

## Install

```bash
pip install sublinput
```

or 
```bash
python -m pip install sublinput
```

## Usage

You only needs to input the package then use the default input function as usual !

```py
import sublinput

n = int(input("Enter a number: "))
```

When an input function is called, the following windows will appear, with title being the input message.

![](https://raw.githubusercontent.com/Sigmanificient/pg-sublime-input/master/img/windows_empty.png)

Type in the windows as a usual input function.

![](https://raw.githubusercontent.com/Sigmanificient/pg-sublime-input/master/img/windows_42.png)

Then press enter (*not keypad enter*) to submit the value.

An input-like log will be printed.
```cmd
Enter a number : 42
```
Then it will return the submit value as a `str`.

*You only need to remove the *import sublinput* from your code to disable it !*

