Python Forum
Code snippets for building multi column Listviews and or Treeview
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Code snippets for building multi column Listviews and or Treeview
#1
I have been working with another programming language for many years and I was very well used to Listview 'widgets' that had multiple column abilities as standard. I don't yet know how to overcome this using Python but i suppose that there are ways and means to achieve it.

From what i've read I intend to study Treeview widgets in Python first as this may lead onto the ability to create multiple column listviews.

Based on the attached screen clips, can anyone offer example code or snippets of code that may just accelerate my learning curve in trying to produce something similar using Python?

These are sample hierarchical material lists / bills of materials (BOMs).

   

   
Reply
#2
What framework are you referring to because i expect most have listview and treeview widgets built in.
Reply
#3
I am using the following.


from tkinter import *
import tkinter as tk
#import tkFont
from datetime import *
import time
from tkinter import ttk
import sqlite3
import webbrowser
from PIL import Image, ImageTk
import csv
from typing import Any
Reply
#4
There is https://tkdocs.com/tutorial/tree.html
otherwise move to a GUI framework that has more controls as standard.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python code to set column width 1418 11 942 Jan-20-2024, 07:20 AM
Last Post: Pedroski55
  Automate Word snippets PHbench 0 518 Jun-06-2023, 06:59 PM
Last Post: PHbench
  Code for pullng all data in a column EmBeck87 5 1,050 Apr-03-2023, 03:43 PM
Last Post: deanhystad
  TreeView column headers TWB 2 1,965 Jan-29-2023, 02:13 PM
Last Post: TWB
  Python Snippets Source kucingkembar 0 612 Oct-18-2022, 12:50 AM
Last Post: kucingkembar
Photo A humble VsCode Python Snippets 2.0 medlexo 6 2,326 Jan-03-2022, 08:54 PM
Last Post: medlexo
  Openpyxl -Coming up with a single column from a multi column data set Givan007 1 2,698 Sep-07-2018, 04:29 AM
Last Post: Prabakaran141
  problem to use multi-threads in a code for telnet sessions anna 6 5,989 Jun-27-2018, 10:02 AM
Last Post: anna

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020