FoxBox


NameFoxBox JSON
Version 0.0.5 PyPI version JSON
download
home_page
SummaryAn usefull package
upload_time2023-01-01 16:33:54
maintainer
docs_urlNone
authorBatte
requires_python
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # FoxBox

Foxbox is a python package to simplify messagebox and bin converter.

## Installation


```bash
pip install foxbox
```

## Usage

```python
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

```python
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 [(--)](https://discord.gg/c6twk26h)

## 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


            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "FoxBox",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Batte",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/00/fd/57d0f0801ec2eb0a954df1a29c2bcab55bae0d0ce25295e7c838fd33548e/FoxBox-0.0.5.tar.gz",
    "platform": null,
    "description": "# FoxBox\r\n\r\nFoxbox is a python package to simplify messagebox and bin converter.\r\n\r\n## Installation\r\n\r\n\r\n```bash\r\npip install foxbox\r\n```\r\n\r\n## Usage\r\n\r\n```python\r\nfrom foxbox import * #Be sure to add * to import all Subpackages\r\n\r\nint2bin(15)\r\n# returns 1111\r\n\r\nbin2int(1111)\r\n# returns 15\r\n\r\nstr2bin('Text')\r\n# returns 01110100011001010111100001110100\r\n\r\nbin2str('01110100011001010111100001110100') #Add binairy text into ''\r\n\r\nbox(\"Text\", MB_ICONQUESTION | MB_CANCELTRYCONTINUE, \"Title\")\r\n           #Message box icon| Message box mode\r\nfile('filename.anyformat')\r\n#create a file\r\n```\r\n\r\n## Message box mode list\r\n\r\n### Mode\r\n\r\nMB_ABORTRETRYIGNORE\r\n\r\nMB_CANCELTRYCONTINUE\r\n\r\nMB_HELP\r\n\r\nMB_OK\r\n\r\nMB_OKCANCEL\r\n\r\nMB_RETRYCANCEL\r\n\r\nMB_YESNO\r\n\r\nMB_YESNOCANCEL\r\n_________\r\n### Icons\r\n\r\nMB_ICONEXCLAMATION\r\n\r\nMB_ICONWARNING\r\n\r\nMB_ICONINFORMATION\r\n\r\nMB_ICONASTERISK\r\n\r\nMB_ICONQUESTION\r\n\r\nMB_ICONSTOP\r\n\r\nMB_ICONERROR\r\n\r\nMB_ICONHAND\r\n_____\r\n### Buttons value\r\n\r\nIDABORT = 3\r\n\r\nIDCANCEL = 2\r\n\r\nIDCONTINUE = 11\r\n\r\nIDIGNORE = 5\r\n\r\nIDNO = 7\r\n\r\nIDOK = 1\r\n\r\nIDRETRY = 4\r\n\r\nIDTRYAGAIN = 10\r\n\r\nIDYES = 6\r\n___\r\n\r\n#### Examples\r\n\r\n```python\r\nfrom foxbox import *\r\nmybox = box(\"SOMETHING WEN WRONG. would you like to restart?\", MB_ICONERROR | MB_YESNO, \"ERROR!\")\r\nif mybox == IDYES:\r\n    print('Restarted!')\r\nif mybox == IDYES:\r\n    print('Closed')\r\n```\r\n\r\n## Help\r\n\r\nThanks for use if you have any question join my Discord server link here [(--)](https://discord.gg/c6twk26h)\r\n\r\n## What's new?\r\n\r\nv0.0.1 - first release\r\n\r\nv0.0.2 - updating package file\r\n\r\nv0.0.3 - description added\r\n\r\nv0.0.4 - changed description (current)\r\n\r\nv0.0.5 - deleted markdown readme\r\n\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "An usefull package",
    "version": "0.0.5",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "0d179787bb92d7551a3b9d87efc71a2a",
                "sha256": "9a7b95d02bd7b212ced01c2dcdb8e7317c375e894cee43bc7def2c432be774da"
            },
            "downloads": -1,
            "filename": "FoxBox-0.0.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0d179787bb92d7551a3b9d87efc71a2a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 3314,
            "upload_time": "2023-01-01T16:33:53",
            "upload_time_iso_8601": "2023-01-01T16:33:53.264876Z",
            "url": "https://files.pythonhosted.org/packages/b3/54/f73d742ee7a2cb51e4c9eb2e08ef94c37eacf6efa9e39ba0fb103e503cae/FoxBox-0.0.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "7590e40f784b18d2220fe7ef0ef36b57",
                "sha256": "176098fc222ad774e882fbc714eea0eab872c6d5ae5c33e96102ec0c60581e26"
            },
            "downloads": -1,
            "filename": "FoxBox-0.0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "7590e40f784b18d2220fe7ef0ef36b57",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3124,
            "upload_time": "2023-01-01T16:33:54",
            "upload_time_iso_8601": "2023-01-01T16:33:54.847158Z",
            "url": "https://files.pythonhosted.org/packages/00/fd/57d0f0801ec2eb0a954df1a29c2bcab55bae0d0ce25295e7c838fd33548e/FoxBox-0.0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-01 16:33:54",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "foxbox"
}
        
Elapsed time: 0.03171s