pygame-scrollbar


Namepygame-scrollbar JSON
Version 1.0.0 PyPI version JSON
download
home_pagehttps://github.com/FrickTzy/Pygame-Scrollbar
SummaryA package for adding scrollbar to surfaces in pygame.
upload_time2024-06-01 05:45:35
maintainerNone
docs_urlNone
authorFrickTzy (Kurt Arnoco)
requires_pythonNone
licenseNone
keywords python pygame python game python game development scrollbar in pygame python scrollbar pygame scrollbar
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Pygame-Scrollbar

## Overview

The Pygame-Scrollbar package provides classes and utilities to implement scrollable interfaces in Pygame applications. It includes components such as scroll bars, content bars, and event handlers to enable smooth scrolling functionality.

## Classes

- **ScrollBarManager:** Manages the creation and rendering of scroll bars.
- **ContentBar:** Represents individual content bars within a scrollable interface.

## Installation

You can install the package via pip:

```bash
pip install pygame-scrollbar
```

## Usage

Here's a basic example demonstrating how to use the Scrollable Interface Package:

```python
import pygame
from scrollable_interface import ScrollBarManager, ContentBar

# Create content bars
content_bar1 = ContentBar(size=(100, 50))
content_bar2 = ContentBar(size=(100, 50))
content_bar3 = ContentBar(size=(100, 50))
content_bar_list = [content_bar1, content_bar2, content_bar3]

# Create a scroll bar manager
scroll_bar_manager = ScrollBarManager(size=(20, 200), content_bar_list=content_bar_list, position=(0, 0))

# In your main loop:
while running:
    # Update the window
    window.fill((255, 255, 255))
    scroll_bar_manager.show(surface=window, window_height=window_height)
    pygame.display.update()
```

## Documentation

For detailed documentation, please refer to the [github repository](https://github.com/FrickTzy/Pygame-Scrollbar).

## License

This package is licensed under the MIT License.

## Contribution

Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests.

---


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/FrickTzy/Pygame-Scrollbar",
    "name": "pygame-scrollbar",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "python, pygame, python game, python game development, scrollbar in pygame, python scrollbar, pygame scrollbar",
    "author": "FrickTzy (Kurt Arnoco)",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/dd/c4/c51b0cbb54b69bcf0b4bd2233d205f9688bb3e88748c8256655423ee3ba9/pygame_scrollbar-1.0.0.tar.gz",
    "platform": null,
    "description": "# Pygame-Scrollbar\n\n## Overview\n\nThe Pygame-Scrollbar package provides classes and utilities to implement scrollable interfaces in Pygame applications. It includes components such as scroll bars, content bars, and event handlers to enable smooth scrolling functionality.\n\n## Classes\n\n- **ScrollBarManager:** Manages the creation and rendering of scroll bars.\n- **ContentBar:** Represents individual content bars within a scrollable interface.\n\n## Installation\n\nYou can install the package via pip:\n\n```bash\npip install pygame-scrollbar\n```\n\n## Usage\n\nHere's a basic example demonstrating how to use the Scrollable Interface Package:\n\n```python\nimport pygame\nfrom scrollable_interface import ScrollBarManager, ContentBar\n\n# Create content bars\ncontent_bar1 = ContentBar(size=(100, 50))\ncontent_bar2 = ContentBar(size=(100, 50))\ncontent_bar3 = ContentBar(size=(100, 50))\ncontent_bar_list = [content_bar1, content_bar2, content_bar3]\n\n# Create a scroll bar manager\nscroll_bar_manager = ScrollBarManager(size=(20, 200), content_bar_list=content_bar_list, position=(0, 0))\n\n# In your main loop:\nwhile running:\n    # Update the window\n    window.fill((255, 255, 255))\n    scroll_bar_manager.show(surface=window, window_height=window_height)\n    pygame.display.update()\n```\n\n## Documentation\n\nFor detailed documentation, please refer to the [github repository](https://github.com/FrickTzy/Pygame-Scrollbar).\n\n## License\n\nThis package is licensed under the MIT License.\n\n## Contribution\n\nContributions are welcome! Please feel free to submit issues, feature requests, or pull requests.\n\n---\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A package for adding scrollbar to surfaces in pygame.",
    "version": "1.0.0",
    "project_urls": {
        "Homepage": "https://github.com/FrickTzy/Pygame-Scrollbar"
    },
    "split_keywords": [
        "python",
        " pygame",
        " python game",
        " python game development",
        " scrollbar in pygame",
        " python scrollbar",
        " pygame scrollbar"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2b9f282c87af3f48a1b11621c2059215605307b578f3650f56783060a1f1ba59",
                "md5": "b98c9698eda2aa68151d1c0fe3ca7aab",
                "sha256": "3d97526edfe96940d4fd7b8eda60d334e8f72821950b9e1663145305b409305d"
            },
            "downloads": -1,
            "filename": "pygame_scrollbar-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b98c9698eda2aa68151d1c0fe3ca7aab",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 7171,
            "upload_time": "2024-06-01T05:45:33",
            "upload_time_iso_8601": "2024-06-01T05:45:33.161018Z",
            "url": "https://files.pythonhosted.org/packages/2b/9f/282c87af3f48a1b11621c2059215605307b578f3650f56783060a1f1ba59/pygame_scrollbar-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ddc4c51b0cbb54b69bcf0b4bd2233d205f9688bb3e88748c8256655423ee3ba9",
                "md5": "ce62303f307cfcaff3e1b1a6c64e6324",
                "sha256": "4c7bd8510b659ea2cd2edf89e73bfcf29accfeb4b393c052ce9699e36177f95c"
            },
            "downloads": -1,
            "filename": "pygame_scrollbar-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "ce62303f307cfcaff3e1b1a6c64e6324",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5695,
            "upload_time": "2024-06-01T05:45:35",
            "upload_time_iso_8601": "2024-06-01T05:45:35.217634Z",
            "url": "https://files.pythonhosted.org/packages/dd/c4/c51b0cbb54b69bcf0b4bd2233d205f9688bb3e88748c8256655423ee3ba9/pygame_scrollbar-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-01 05:45:35",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "FrickTzy",
    "github_project": "Pygame-Scrollbar",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "pygame-scrollbar"
}
        
Elapsed time: 0.22746s