Skip to content

Gui - AttributeError: module 'flet' has no attribute 'colors'. Did you mean: 'Colors'? #95

@DarkEyeDragon

Description

@DarkEyeDragon

Hello.
I'm trying to get transparent-background-gui working.
I've managed to get it working just fine in the past.

However when i try to run it now i get the following error:

(venv) C:\venv>transparent-background-gui
Unhandled error processing page session : Traceback (most recent call last):
  File "C:\venv\Lib\site-packages\flet\app.py", line 247, in on_session_created
    await asyncio.get_running_loop().run_in_executor(
        executor, session_handler, page
    )
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.13_3.13.1008.0_x64__qbz5n2kfra8p0\Lib\concurrent\futures\thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)
  File "C:\venv\Lib\site-packages\transparent_background\gui.py", line 151, in main
    output_text = ft.Text(color=ft.colors.BLACK)
                                ^^^^^^^^^

My guess is that something changed in the later versions of python?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions