Replies: 3 comments
-
Can you trying specifying the assets dir through the command line and report why happens? (Docs) Also, did you mean you have both directories (assets and assets04) in the root of your app? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for answering.
I've just started a Flet course and I was trying to have an assets
directory per chapter (assets_04 would be the resources directory for
chapter 4).
In the attached image you can see that I only have one assets folder,
assets_04
Right now I just verified that if I specify assets_dir in the execution it
also works fine:
python fonts.py OK
flet run sources.py -a assets_04 OK
flet run fonts.py Doesn't work
I remember that in the code I do specify assets_dir:
ft.app(main, assets_dir="assets_04")
(Sorry if my English is not very good. It is a Google translation
El sáb, 27 abr 2024 a las 3:04, TheEthicalBoy ***@***.***>)
escribió:
… Can you trying specifying the assets dir through the command line and
report why happens? (Docs
<https://flet.dev/docs/reference/cli/run#:~:text=%2Da%20assets_dir%2C%20%2D%2Dassets%20assets_dir>
)
Also, did you mean you have both directories (assets and assets04) in the
root of your app?
—
Reply to this email directly, view it on GitHub
<#3103 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AV6YXBDKATH4HGSDTIUODVDY7L2QFAVCNFSM6AAAAABG27GSW6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TENBSGM4TE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
It seems that the image did not upload. The tree is:
root
- folder assets_04
- fonts
. file Kanit-Bold.ttf
. file SpaceMission-rgyw9.otf . fonts.py
. file fuentes.py
El sáb, 27 abr 2024 a las 9:45, Emilio Ferrera Montero (<
***@***.***>) escribió:
… Thanks for answering.
I've just started a Flet course and I was trying to have an assets
directory per chapter (assets_04 would be the resources directory for
chapter 4).
In the attached image you can see that I only have one assets folder,
assets_04
Right now I just verified that if I specify assets_dir in the execution it
also works fine:
python fonts.py OK
flet run sources.py -a assets_04 OK
flet run fonts.py Doesn't work
I remember that in the code I do specify assets_dir:
ft.app(main, assets_dir="assets_04")
(Sorry if my English is not very good. It is a Google translation
El sáb, 27 abr 2024 a las 3:04, TheEthicalBoy ***@***.***>)
escribió:
> Can you trying specifying the assets dir through the command line and
> report why happens? (Docs
> <https://flet.dev/docs/reference/cli/run#:~:text=%2Da%20assets_dir%2C%20%2D%2Dassets%20assets_dir>
> )
>
> Also, did you mean you have both directories (assets and assets04) in the
> root of your app?
>
> —
> Reply to this email directly, view it on GitHub
> <#3103 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AV6YXBDKATH4HGSDTIUODVDY7L2QFAVCNFSM6AAAAABG27GSW6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TENBSGM4TE>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Question
Hello everyone,
I just discovered Flet and I think it's great. I immediately started a tutorial, but soon ran into the first problem.
Suppose I want the resources folder to be named assets_04 instead of assets. If I run the application by python app.py, it works fine, but if I run the application by flet run app.py it does not work.
Regardless of what you have in asset_dir, flet always looks for the resources in the assets folder
Code sample
Error message
No response
------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions