You're a brilliant man. and The Future belongs to such individuals. I wish i had devoted more time (in my youth) to becoming more technologically literate. But it seems like a life-study. Due to its ever-evolving nature. Such tech. admittedly scares me some. Im not a Diehard, Anti-tech sort by any means, but I realize that it has the potential for much good, or ill. (depending on the Individual(s) behind the screen.) May you always use your gifts to enlighten and inform. Much respect friend.
Hi! I would love to see a video that works with threading!! I'm struggling with that. I'm trying to create a pomodoro timer, but I'm not understanding the process correct! I would love to see something like that
Every time I run a python script using flet, I get this error message : (flet:14329): Gdk-CRITICAL **: 12:17:39.951: gdk_window_get_state: assertion 'GDK_IS_WINDOW (window)' failed The screen still comes up and the program runs correctly, but the error is always there (running Mint Linux). Any thoughts?
Hi Indently, First of all I want to thank you for your simple but powerful tutorial series of flet! Now I come to my problem... when I try to write something to a file with: with open("path/to/file.mp4", "wb") as f: # don't worry I have a real path choosen :) f.write(data) I get an error on mobile, which says "permission denied (errno 13)". Could you please help me with this issue? Stay safe and have fun programming
those are not really part of the script, but annotations that are added by the IDE he uses (That is also the reason, why those lines have no line number).
how does one go about actually packaging this into something that people can download? im very new to coding this has been a question i cant seem to figure out
Hello! Your video is very good! I want to make you a query. Context first: I have a list of rows that are the results of a search using a text field. In practice, I should be able to click on one of the results (1 row specifically) and it will give me all the information corresponding to that particular result. When there is only one result, everything is fine. The problem I have is when there is more than one result. The rows are generated inside a For loop, when I "export" the information for the row I clicked on, instead of giving me that information I clicked on, it gives me the last element of the For loop, which doesn't match the Row I clicked on. Can you help me? I understand that it's a simple problem of not being able to identify an element within an iterator like For, but I haven't been able to fix it. I already tried using indexes inside the For iterator but it didn't work as expected. I am looking forward to your response. Greetings from Argentina!
Ya que eres de Argentina supongo que hablas español. ¿Has probado a guardar todas las filas que se crean en una lista? Podrías acceder a ellas mediante el índice, aunque no sé muy bien qué tendrías que hacer, sin ver nada de código es complicado
@@xsamueljr Hola! Muchas gracias por tu respuesta! Sí, intente eso mismo pero no funciona para mi. Cuando genero los rows lo hago con un for, a cada celda dentro del row le coloco un on_tap que llama a una función (de ahora en adelante la llamaremos "C") y le envío como argumento el iterante actual correspondiente a esa celda, pero sucede que en momento de ejecución, el iterador que se envía como argumento es siempre el ultimo elemento del iterante. Lamentablemente no pude solucionar este problema para también llevarlo a otros escenarios que presentan el mismo caso, pero este en particular pude encontrarle la vuelta usando on_tap llamando a una función "A" y enviando como argumento el diccionario de información de contexto que necesito trabajar. Esta función "A" retorna mediante lambda la invocación de una función "B" pasandole el mismo argumento. Dentro de esta función "B" ahora si llamo a la función "C", también pasandole el mismo argumento. Esta función "C" si ya es la que cumple con las tareas que necesito realizar con el contexto del iterador que viene como argumento al hacer click en la/s celda/s. pequeño resumen: rows = [] def funcion_C(contexto:dict): '''desarrollo mis tareas usando contexto, en este ejemplo imprimo nomás''' print(contexto) def funcion_B(contexto:dict): funcion_C(contexto) def funcion_A(contexto:dict): return lambda _: funcion_B(contexto) def crear_rows(): lista_informacion:list = [ {'nombre':'Pedro','apellido':'García','edad':31,'nacionalidad':'Chile'}, {'nombre':'Lucas','apellido':'Sánchez','edad':28,'nacionalidad':'Colombia'}, {'nombre':'Juan','apellido':'Peréz','edad':25,'nacionalidad':'Argentina'} ] for info in lista_informacion: rows.append( DataRow( cells = [ DataCell(Text(info['nombre'], key='nombre'), on_tap=funcion_A(info)), DataCell(Text(info['apellido'], key='apellido'), on_tap=funcion_A(info)), DataCell(Text(info['edad'], key='edad'), on_tap=funcion_A(info)), DataCell(Text(info['nacionalidad'], key='nacionalidad'), on_tap=funcion_A(info)), ] ) ) Perdón por hacerla larga jajaja Espero que a alguien le sirva. Saludos!
Good broh. But please bring its next part having the options to select the text and make some operations with the selected text like Copy, Paste, Bold, Underline etc.
@@redcraft612 Actually it is over easy, Flet provides built-in way to Copy, Paste, Cut and Select All on right click as Context Menu. But does not provide handle for right click event for the widget itself. I think, in upcoming versions of Flet it would come. I'm also curious to know about "How to popup a container at specific location of its super-widget?". But again, in upcoming versions of Flet it may bring.
i'have been trying to figure out how to make different words different colors to make a code editor. i still have not found the solution. does someone know how?
@@abdullahsaid4765 yeah but how could i like set each respective color for a certain word especially in a textfield widget? i only know it has an attribute color but how could i make it that a certain word is colored green while the other red
Hi, I'd like more flet videos!
You're a brilliant
man.
and
The Future belongs
to such individuals.
I wish i had devoted
more time (in my youth)
to becoming more technologically literate.
But it seems like a life-study.
Due to its ever-evolving nature.
Such tech. admittedly scares
me some. Im not a Diehard,
Anti-tech sort by any means, but I realize that it has the potential for much good, or ill.
(depending on the Individual(s) behind the screen.)
May you always use your
gifts to enlighten and inform.
Much respect friend.
Great video! Will try this out soon
Hi! I would love to see a video that works with threading!! I'm struggling with that. I'm trying to create a pomodoro timer, but I'm not understanding the process correct! I would love to see something like that
Can you do a video to show how we can control scrolling behaviour, is say I'm using listview
Every time I run a python script using flet, I get this error message :
(flet:14329): Gdk-CRITICAL **: 12:17:39.951: gdk_window_get_state: assertion 'GDK_IS_WINDOW (window)' failed
The screen still comes up and the program runs correctly, but the error is always there (running Mint Linux).
Any thoughts?
Agree. More flet videos.
Bind ctrl+s as keyboard event
Can I make a chatbot app with it as a mini project 😅?
Thank you for the vidéo !
I think it's already planned but can you do a tutorial for the use of flet on android and iOS
0:35 infinite creativity 😂
french guy
@@IerziYep I am and you too by the way 😂
mon dieu
Hi Indently,
First of all I want to thank you for your simple but powerful tutorial series of flet!
Now I come to my problem... when I try to write something to a file with:
with open("path/to/file.mp4", "wb") as f: # don't worry I have a real path choosen :)
f.write(data)
I get an error on mobile, which says "permission denied (errno 13)". Could you please help me with this issue?
Stay safe and have fun programming
This often happens if you’re on Windows using /. In windows you need to use \ and make it into a raw string by placing a r in front like you do f.
@@danielcrompton7818 Windows also handle normal /.
Super 👏
Thanks for the video!
I have one question about the script. I want to understand what’s “new *” for.
Thanks in advance.
those are not really part of the script, but annotations that are added by the IDE he uses (That is also the reason, why those lines have no line number).
thanks!
how does one go about actually packaging this into something that people can download? im very new to coding this has been a question i cant seem to figure out
Hello! Your video is very good! I want to make you a query.
Context first: I have a list of rows that are the results of a search using a text field. In practice, I should be able to click on one of the results (1 row specifically) and it will give me all the information corresponding to that particular result. When there is only one result, everything is fine. The problem I have is when there is more than one result. The rows are generated inside a For loop, when I "export" the information for the row I clicked on, instead of giving me that information I clicked on, it gives me the last element of the For loop, which doesn't match the Row I clicked on.
Can you help me? I understand that it's a simple problem of not being able to identify an element within an iterator like For, but I haven't been able to fix it. I already tried using indexes inside the For iterator but it didn't work as expected.
I am looking forward to your response. Greetings from Argentina!
Ya que eres de Argentina supongo que hablas español. ¿Has probado a guardar todas las filas que se crean en una lista? Podrías acceder a ellas mediante el índice, aunque no sé muy bien qué tendrías que hacer, sin ver nada de código es complicado
@@xsamueljr Hola! Muchas gracias por tu respuesta! Sí, intente eso mismo pero no funciona para mi. Cuando genero los rows lo hago con un for, a cada celda dentro del row le coloco un on_tap que llama a una función (de ahora en adelante la llamaremos "C") y le envío como argumento el iterante actual correspondiente a esa celda, pero sucede que en momento de ejecución, el iterador que se envía como argumento es siempre el ultimo elemento del iterante. Lamentablemente no pude solucionar este problema para también llevarlo a otros escenarios que presentan el mismo caso, pero este en particular pude encontrarle la vuelta usando on_tap llamando a una función "A" y enviando como argumento el diccionario de información de contexto que necesito trabajar. Esta función "A" retorna mediante lambda la invocación de una función "B" pasandole el mismo argumento. Dentro de esta función "B" ahora si llamo a la función "C", también pasandole el mismo argumento. Esta función "C" si ya es la que cumple con las tareas que necesito realizar con el contexto del iterador que viene como argumento al hacer click en la/s celda/s.
pequeño resumen:
rows = []
def funcion_C(contexto:dict):
'''desarrollo mis tareas usando contexto, en este ejemplo imprimo nomás'''
print(contexto)
def funcion_B(contexto:dict):
funcion_C(contexto)
def funcion_A(contexto:dict):
return lambda _: funcion_B(contexto)
def crear_rows():
lista_informacion:list = [
{'nombre':'Pedro','apellido':'García','edad':31,'nacionalidad':'Chile'},
{'nombre':'Lucas','apellido':'Sánchez','edad':28,'nacionalidad':'Colombia'},
{'nombre':'Juan','apellido':'Peréz','edad':25,'nacionalidad':'Argentina'}
]
for info in lista_informacion:
rows.append(
DataRow(
cells = [
DataCell(Text(info['nombre'], key='nombre'), on_tap=funcion_A(info)),
DataCell(Text(info['apellido'], key='apellido'), on_tap=funcion_A(info)),
DataCell(Text(info['edad'], key='edad'), on_tap=funcion_A(info)),
DataCell(Text(info['nacionalidad'], key='nacionalidad'), on_tap=funcion_A(info)),
]
)
)
Perdón por hacerla larga jajaja
Espero que a alguien le sirva. Saludos!
Good broh. But please bring its next part having the options to select the text and make some operations with the selected text like Copy, Paste, Bold, Underline etc.
Should be pretty easy, maybe do it as an exercise.
@@redcraft612 Actually it is over easy, Flet provides built-in way to Copy, Paste, Cut and Select All on right click as Context Menu. But does not provide handle for right click event for the widget itself. I think, in upcoming versions of Flet it would come.
I'm also curious to know about "How to popup a container at specific location of its super-widget?". But again, in upcoming versions of Flet it may bring.
i'have been trying to figure out how to make different words different colors to make a code editor. i still have not found the solution. does someone know how?
you can put all color in set and use random.choice to choose random color every time you write new word.
@@abdullahsaid4765 yeah but how could i like set each respective color for a certain word especially in a textfield widget? i only know it has an attribute color but how could i make it that a certain word is colored green while the other red