How To Create A Cool Notepad App In Python (Flet Tutorial)

Поділитися
Вставка
  • Опубліковано 3 гру 2024

КОМЕНТАРІ • 30

  • @chabaniuk-m
    @chabaniuk-m 10 місяців тому +2

    Hi, I'd like more flet videos!

  • @jeremyhennessee6604
    @jeremyhennessee6604 Рік тому

    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.

  • @shababnoor482
    @shababnoor482 Рік тому

    Great video! Will try this out soon

  • @eduardolima5495
    @eduardolima5495 10 місяців тому

    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

  • @martinsilungwe2725
    @martinsilungwe2725 11 місяців тому

    Can you do a video to show how we can control scrolling behaviour, is say I'm using listview

  • @gerryhoekema2561
    @gerryhoekema2561 Рік тому

    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?

  • @alansnyder8448
    @alansnyder8448 7 місяців тому

    Agree. More flet videos.

  • @mohankumarmanepalli3286
    @mohankumarmanepalli3286 Рік тому +1

    Bind ctrl+s as keyboard event

  • @yogeshchauhan9401
    @yogeshchauhan9401 Рік тому +1

    Can I make a chatbot app with it as a mini project 😅?

  • @Cest_moi_2
    @Cest_moi_2 Рік тому +2

    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 😂

    • @Ierzi
      @Ierzi Рік тому

      french guy

    • @Cest_moi_2
      @Cest_moi_2 Рік тому

      ​@@IerziYep I am and you too by the way 😂

    • @Indently
      @Indently  Рік тому +1

      mon dieu

  • @ValentinKunz
    @ValentinKunz 10 місяців тому +2

    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

    • @danielcrompton7818
      @danielcrompton7818 8 місяців тому

      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.

    • @foxypiratecove37350
      @foxypiratecove37350 5 місяців тому

      @@danielcrompton7818 Windows also handle normal /.

  • @selvamp5775
    @selvamp5775 Рік тому

    Super 👏

  • @ignaciozanelli9904
    @ignaciozanelli9904 Рік тому

    Thanks for the video!
    I have one question about the script. I want to understand what’s “new *” for.
    Thanks in advance.

    • @benunrealt3
      @benunrealt3 Рік тому

      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).

  • @banderapower924
    @banderapower924 Рік тому

    thanks!

  • @xanperna
    @xanperna 7 місяців тому

    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

  • @alejandropoos
    @alejandropoos Рік тому +1

    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!

    • @xsamueljr
      @xsamueljr Рік тому

      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

    • @alejandropoos
      @alejandropoos Рік тому

      @@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!

  • @dipeshsamrawat7957
    @dipeshsamrawat7957 Рік тому +3

    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
      @redcraft612 Рік тому

      Should be pretty easy, maybe do it as an exercise.

    • @dipeshsamrawat7957
      @dipeshsamrawat7957 Рік тому

      @@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.

  • @logicon2456
    @logicon2456 Рік тому

    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
      @abdullahsaid4765 Рік тому

      you can put all color in set and use random.choice to choose random color every time you write new word.

    • @logicon2456
      @logicon2456 Рік тому

      @@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