Tkinter - Treeview Configure Columns and Headers

Поділитися
Вставка
  • Опубліковано 15 січ 2025

КОМЕНТАРІ • 18

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

    An absolutely perfect tutorial for treeview. Everything you could ever want to know for your first project is discussed, well done!

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

      Much appreciated!

  • @Mots-mot
    @Mots-mot Рік тому

    how to disable the header or set visible property to false?

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

    Bonsoir, en fait je voudrais inséré un treeview dans une fonction accompagné d'une image mais l'image n'apparaît pas et dans un toplevel besoin d'aide s'il vous plaît !!!

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

    Thanks!

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

    What is the value of the "parent" parameter of the "insert" method when the Treeview is in another "frame" widget for example. ? Is it "" or "frame"?

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

      The parent in the .insert() method of a treeview widget expects a treeview item, such as "I001" (ie: a sub-item). If the item you're adding is a root item, then parent can be a blank string( parent=""")

  • @Max.Mustermann.
    @Max.Mustermann. Рік тому

    My treeview frame shows another column, before my first written Column how do i avoid that ?

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

      I think what you're looking for is: treeview_widget.configure(show="headings")
      That will hide the first column, which is created automatically.

  • @PA7RHM
    @PA7RHM 2 роки тому

    thank you

    • @PA7RHM
      @PA7RHM 2 роки тому

      I just improved my treeview with the information in your video

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

    Nice

  • @sgg245
    @sgg245 2 роки тому

    Hi Jobin
    I want to upload data in tree view from csv file.

    • @jobinpy
      @jobinpy  2 роки тому

      Hello. There is a csv module for Python, you can use that module to read csv files and once you have the csv data, you can populate the treeview from that data. I've created a video about how to populate a treeview widget. Please check out the videos section of my channel. Thanks.

  • @funnyclips2696
    @funnyclips2696 2 роки тому

    👌🏿👌🏿👌🏿👌🏿👌🏿

  • @MSM.90
    @MSM.90 2 роки тому

    Thanks for great explanation 👍🏼, I have one question about columns, how to show each column frame in different colors?
    For example
    vehicle type "red"
    name " blue"
    Year " yellow "
    Thanks again for your video.

    • @jobinpy
      @jobinpy  2 роки тому +1

      Hi Mohammed Alneyadi, if you're referring to treeview headers, the colors can only be changed for all headers, not specific headers. If you're referring to the columns which can contain multiple rows, colors can only be defined per-row, not per-column. Thanks for watching my videos.

    • @MSM.90
      @MSM.90 2 роки тому

      @@jobinpy thanks for replying jobin ..
      I tried many ways, but as you said, the colors changed for all headers.
      I searched that I can use (tag_configure) but still no result yet .
      Thanks jobin ،keep going wish you all the best.