Skip to main content

kabaret.flow_button_pages

Code style: black

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/

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)

Source distribution for kabaret.flow-button-pages 0.1.12
File Size Uploaded
kabaret.flow_button_pages-0.1.12.tar.gz 152.5 kB Details

Release files / kabaret.flow_button_pages-0.1.12.tar.gz

Download URL kabaret.flow_button_pages-0.1.12.tar.gz
Size 152.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f9f07ab046a3b430a746448cc70f59798ae16a83e36cf18e68c53c1eca48e496
BLAKE2b-256 checksum
How to use checksums
c966dc5fb637209c992b6b33a1b262019994fc11f5d9e12f1ea736674090c87b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.1.12 This release

1 release file

0.1.11

1 release file

0.1.9

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page