Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sigmanificient/pg-sublime-input
A sublime pygame ui as alternative to unsupported python input built-in.
https://github.com/sigmanificient/pg-sublime-input
input input-method pygame pygame-gui pypi pypi-package pypi-source python python-3 python-3-6 python-3-7 python-3-8 python3 python36 python37 python38
Last synced: 3 days ago
JSON representation
A sublime pygame ui as alternative to unsupported python input built-in.
- Host: GitHub
- URL: https://github.com/sigmanificient/pg-sublime-input
- Owner: Sigmanificient
- License: mit
- Created: 2021-07-26T09:58:47.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-07-30T20:44:30.000Z (about 3 years ago)
- Last Synced: 2024-09-24T19:24:26.141Z (3 days ago)
- Topics: input, input-method, pygame, pygame-gui, pypi, pypi-package, pypi-source, python, python-3, python-3-6, python-3-7, python-3-8, python3, python36, python37, python38
- Language: Python
- Homepage: https://pypi.org/project/sublinput/
- Size: 14.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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)
![PyPI - Downloads](https://img.shields.io/pypi/dm/sublinput)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 sublinputval = int(input("Enter a number: "))
print(val)
```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 !*