clgui


Nameclgui JSON
Version 0.1.1 PyPI version JSON
download
home_page
SummaryCommand-line gui library for python
upload_time2023-12-25 21:49:15
maintainer
docs_urlNone
authorTitusHM
requires_python>=3.5
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # clgui

Command-Line-GUI

# Docs

## Install clgui

`pip install clgui`

## Create new gui

```py
import clgui

vertical_layout = clgui.layout.VStack() # Currently the only layout is VStack, more are planned
main = clgui.GUI(layout=vertical_layout) # Initialize a new GUI

# Elements
button_list = clgui.ButtonList() # Currently the only element types are ButtonList and Button, more are planned
button = clgui.Button("click me") # Buttons do not need event handlers but can have them.

def handleClick(data):
	print(data)
# Methods
button1 = clgui.Button("Hello", handleClick, ["data1", "data2"]) # Create a new button with an event handler when enter is pressed on it
button2 = clgui.Button("World") # Create a new button with an event handler when enter is pressed on it
button_list.addButtons([button1, button2]) # Add buttons to the button list

button_list.addButton(button1) # A single button can also be added

vertical_layout.add(button_list) # Add button list to the layout
vertical_layout.add(button) # You can also directly add a button to the layout
main.show() # Show the main GUI
main.destroy() # Close the gui
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "clgui",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.5",
    "maintainer_email": "",
    "keywords": "",
    "author": "TitusHM",
    "author_email": "TitusHM <dev.titushm@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/8b/2c/fe6e192dc396604fd148e654737bce2bdacde2e9b95a6c7a86009c12d6b5/clgui-0.1.1.tar.gz",
    "platform": null,
    "description": "# clgui\r\n\r\nCommand-Line-GUI\r\n\r\n# Docs\r\n\r\n## Install clgui\r\n\r\n`pip install clgui`\r\n\r\n## Create new gui\r\n\r\n```py\r\nimport clgui\r\n\r\nvertical_layout = clgui.layout.VStack() # Currently the only layout is VStack, more are planned\r\nmain = clgui.GUI(layout=vertical_layout) # Initialize a new GUI\r\n\r\n# Elements\r\nbutton_list = clgui.ButtonList() # Currently the only element types are ButtonList and Button, more are planned\r\nbutton = clgui.Button(\"click me\") # Buttons do not need event handlers but can have them.\r\n\r\ndef handleClick(data):\r\n\tprint(data)\r\n# Methods\r\nbutton1 = clgui.Button(\"Hello\", handleClick, [\"data1\", \"data2\"]) # Create a new button with an event handler when enter is pressed on it\r\nbutton2 = clgui.Button(\"World\") # Create a new button with an event handler when enter is pressed on it\r\nbutton_list.addButtons([button1, button2]) # Add buttons to the button list\r\n\r\nbutton_list.addButton(button1) # A single button can also be added\r\n\r\nvertical_layout.add(button_list) # Add button list to the layout\r\nvertical_layout.add(button) # You can also directly add a button to the layout\r\nmain.show() # Show the main GUI\r\nmain.destroy() # Close the gui\r\n```\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Command-line gui library for python",
    "version": "0.1.1",
    "project_urls": {
        "Bug Tracker": "https://github.com/titushm/clgui/issues",
        "Homepage": "https://github.com/titushm/clgui"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "14573749291b291d04830320a97d2868b6499f9b880cf52e071416852785b1b7",
                "md5": "be15d717e8405024b9374e04496bde00",
                "sha256": "9eeacfbff5cfe986a51dcb354ca8ab47a627fceaa43d25dba24980f755b8b310"
            },
            "downloads": -1,
            "filename": "clgui-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "be15d717e8405024b9374e04496bde00",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.5",
            "size": 14997,
            "upload_time": "2023-12-25T21:49:11",
            "upload_time_iso_8601": "2023-12-25T21:49:11.797220Z",
            "url": "https://files.pythonhosted.org/packages/14/57/3749291b291d04830320a97d2868b6499f9b880cf52e071416852785b1b7/clgui-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8b2cfe6e192dc396604fd148e654737bce2bdacde2e9b95a6c7a86009c12d6b5",
                "md5": "aa73130dad811688369c2f2d3d45a29b",
                "sha256": "77f012a2e8caa09d78e42ecb1cbbb2ae6723b1f44327172707e0770d3a27ca17"
            },
            "downloads": -1,
            "filename": "clgui-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "aa73130dad811688369c2f2d3d45a29b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.5",
            "size": 8829,
            "upload_time": "2023-12-25T21:49:15",
            "upload_time_iso_8601": "2023-12-25T21:49:15.749615Z",
            "url": "https://files.pythonhosted.org/packages/8b/2c/fe6e192dc396604fd148e654737bce2bdacde2e9b95a6c7a86009c12d6b5/clgui-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-25 21:49:15",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "titushm",
    "github_project": "clgui",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "clgui"
}
        
Elapsed time: 2.81199s