kabaret.flow_button_pages
A collection of custom_page widgets to use in your flow, as well as an extended Home page showing thumbnail/icon and color for your Projects.
Button Home
The Button Home extends the default Home page will a few options.
Right click on an empty space on the Home page to access the Admin area. You will find the default Home with additional Home Settings:
- Show Status: Will show the Project status below its name.
- Show Archived: Will hide archived Project unless checked.
- Button Height: Height of each Project button.
- Default Thumbnail: Defines the thumbnail to use when no thumbnail is set on a Project.
As well as the Project Settings. You can edit them here, or with a right click on a Project button -> Configure
- Color: use an hex color here, it will change the button text color.
- Thumbnail: Define the thumbnail to show on the button. You can
use:
- A file path (! avoid backslashes !)
- A data uri. This will embed the image in the database. You can use Chrome Developers Tools to get it from an image.
- A classic kabaret resource identifier like
('icons.gui', 'start')
In order to create a new Project or edit a Project status, you still need
to use the classic controls (The actions are in the Admin area's
Projects Map).
Usage
In your Session class, override the _create_actor() method to create
a Flow actor using ButtonHomeRoot as custom home root:
from kabaret.app.ui import gui
from kabaret.app.actors.flow import Flow
from kabaret.flow_button_pages import ButtonHomeRoot
class MySession(gui.KabaretStandaloneGUISession):
def _create_actors(self):
Flow(self, CustomHomeRootType=ButtonHomeRoot)
That's it ! \o/
Metadata
Release files for kabaret.flow-button-pages 0.1.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kabaret.flow_button_pages-0.1.12.tar.gz | 152.5 kB | Without provenance | Details for kabaret.flow_button_pages-0.1.12.tar.gz |
Security for kabaret.flow-button-pages 0.1.12
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.