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)
v0.0.5 - deleted markdown readme
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.5.tar.gz.
File metadata
- Download URL: FoxBox-0.0.5.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
176098fc222ad774e882fbc714eea0eab872c6d5ae5c33e96102ec0c60581e26
|
|
| MD5 |
7590e40f784b18d2220fe7ef0ef36b57
|
|
| BLAKE2b-256 |
00fd57d0f0801ec2eb0a954df1a29c2bcab55bae0d0ce25295e7c838fd33548e
|
File details
Details for the file FoxBox-0.0.5-py3-none-any.whl.
File metadata
- Download URL: FoxBox-0.0.5-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 |
9a7b95d02bd7b212ced01c2dcdb8e7317c375e894cee43bc7def2c432be774da
|
|
| MD5 |
0d179787bb92d7551a3b9d87efc71a2a
|
|
| BLAKE2b-256 |
b354f73d742ee7a2cb51e4c9eb2e08ef94c37eacf6efa9e39ba0fb103e503cae
|