Package: pygameinputs
pygame inputsa python library used to create input boxes and buttons in pygame for a GUIThis is a free open source python library.
Please read the license before editing or sharing onlineInstallation:To use the package use thepip install pygameinputscommandHow to use:To get started ensure you have pygame. If you don't use:pip install pygameto get started.I recommend an IDE when designing an app but is not required.button creationImport the button scripts:from PygameInputs.Button import Buttonthis line will import the button module from the Pygame Inputs libraryTo create a button firstly give it an identifier, in this case I am going to give mine an identifier of startGame.The button has a blueprint and will work straight away without editing any of its attributes however it can be fully customised.startGame =  Button()Input box creationImport the input box scripts:from PygameInputs.TextBox import TextBoxthis line will import the textbox module form the Pygame Inputs libraryTo create a textbox firstly give it an identifier, in this case I am going to give mine an identifier of searchBar.The textbox has a blueprint and will work straight away without editing any of its attributes however it can be fully customised.searchBar = TextBox()Label creationImport the label scripts:from pygameinputs.Label import Labelthis line will import the label module from the Pygame Inputs libraryTo create a label firstly give it an identifier, in this case I am going to give mine an identifier of myLabel.The label has a blueprint and will work straight away without editing any of its attributes however it can be fully customised.myLabel = Label()Slider creationImport the slider scripts:from pygameinputs.Sliders import HorizontalSlider, VerticalSliderthis line will import the slider module from the pygame inputs libraryTo create a slider firstly give it an identifier. In this case I am goting to give mine and idetifier of myHorizontalSlider.The slider has a blueprint and will work straight away without editing any of its attributes however it can be fully customisedmyHorizontalSlider = HorizontalSlider()for a vertical slider replaceHorizontalSlider()withVerticalSlider()ChangelogVersion 0.0.1Initial release for the alpha of the libraryVersion 0.0.2Updated some documentation and added extra information to PyPi.Version 0.0.3Fixed a bug with the border width property overwriting the background when set to 0Version 0.0.4Added typing indicatorAdded built in event handling within the button and textboxVersion 0.0.5Added text labelsVersion 0.0.6Added vertical and horizontal slidersAdded hyperlink functionality within buttons to open apps and urlsVersion 0.1Minor bug fix - centre handles on slidersFixed buttons not loading ttf filesMajor bug fix - fixed flickering cursors (read documentation to ensure your cursors are fixed)Added image buttonsVersion 0.1.1Added a hover state to the image buttonsFixed a bug with buttons still checking the hover state when not visibleVersion 0.1.2Fixed a bug with the buttons not changing their hover state to False when hiddenVersion 0.1.3Fixed a bug with labels not loading ttf filesLabels can now be centred (maxwidth must be set to work)Version 0.1.4Added border radius functionality to text boxes and buttons (except image buttons)Future updates:Bug fixesYour reccomendations (read the paragraph below how to submit a feature request)If you have any reccomendations or would like to contribute please visit theGitHuband make an issue with the enhancement labelDocumentationThis library is not associated with pygame, it just uses their library to add input functionality