An usefull package
Project description
FoxBox
Foxbox is a python package to simplify messagebox and bin converter.
Installation
pip install foxbox
Usage
from foxbox import * #Be sure to add * to import all Subpackages
int2bin(15)
# returns 1111
bin2int(1111)
# returns 15
str2bin('Text')
# returns 01110100011001010111100001110100
bin2str('01110100011001010111100001110100') #Add binairy text into ''
box("Text", MB_ICONQUESTION | MB_CANCELTRYCONTINUE, "Title")
#Message box icon| Message box mode
file('filename.anyformat')
#create a file
Message box mode list
Mode
MB_ABORTRETRYIGNORE MB_CANCELTRYCONTINUE MB_HELP MB_OK MB_OKCANCEL MB_RETRYCANCEL MB_YESNO MB_YESNOCANCEL
Icons
MB_ICONEXCLAMATION MB_ICONWARNING MB_ICONINFORMATION MB_ICONASTERISK MB_ICONQUESTION MB_ICONSTOP MB_ICONERROR MB_ICONHAND
Buttons value
IDABORT = 3 IDCANCEL = 2 IDCONTINUE = 11 IDIGNORE = 5 IDNO = 7 IDOK = 1 IDRETRY = 4 IDTRYAGAIN = 10 IDYES = 6
Examples
from foxbox import *
mybox = box("SOMETHING WEN WRONG. would you like to restart?", MB_ICONERROR | MB_YESNO, "ERROR!")
if mybox == IDYES:
print('Restarted!')
if mybox == IDYES:
print('Closed')
Help
Thanks for use if you have any question join my Discord server link here (--)
What's new?
v0.0.1 - first release v0.0.2 - updating package file v0.0.3 - description added v0.0.4 - changed description (current)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file FoxBox-0.0.4.tar.gz.
File metadata
- Download URL: FoxBox-0.0.4.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b6ecbdd71e0a62f42bf0268712d8a2966959a99fe63cc8f8baefc4732dab977
|
|
| MD5 |
519f5fe93d95150da2122cb68f925230
|
|
| BLAKE2b-256 |
4c51ad5aa1a375c0c6818105a6c5bf91a287daf4e94c04725f08461094536cb1
|
File details
Details for the file FoxBox-0.0.4-py3-none-any.whl.
File metadata
- Download URL: FoxBox-0.0.4-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86ecf7c9ee3296b4cd106e0a8909feb958fee7e6c0f16d6bcd850e6e1d4b7b30
|
|
| MD5 |
3e6a9db0dc317fa19b4e8c5baa629734
|
|
| BLAKE2b-256 |
3638fd9cdae7633de1723b0e43a730443a4f852973e552f526916cb16d51cec7
|