Python Forum
Connecting lists for tree view
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connecting lists for tree view
#1
Hello,
I have a list of datetime objects that will look like below
('John', datetime.datetime(1984, 8, 26), datetime.datetime(2021, 8, 26))
('Peter', datetime.datetime(2021, 8, 26), datetime.datetime(2028, 8, 26))
('Madame', datetime.datetime(2028, 8, 26), datetime.datetime(2038, 8, 26))
('Taouse', datetime.datetime(2038, 8, 26), datetime.datetime(2044, 8, 26))
('Paul', datetime.datetime(2044, 8, 26), datetime.datetime(2054, 8, 26))
Basically a name, from date, to date. For each name interval, i divide them with a certain value and will get another list like below,
('JohnPart1', datetime.datetime(1984, 8, 26), datetime.datetime(1997, 1, 22))
('JohnPart2', datetime.datetime(1997, 1, 22), datetime.datetime(2008, 1, 19))
('JohnPart3', datetime.datetime(2008, 1, 19), datetime.datetime(2020, 11, 19))
('JohnPart4', datetime.datetime(2020, 11, 19), datetime.datetime(2021, 9, 26))
i.e John has a interval from 1984 to 2021 and i have divided that into sub periods, like this i have done for other names as well and for each name there will be 4 parts, so my sub period list will have 20 values in them, i want to display them in a tree view , i would like to know how can i connect the main list with corresponding sub period list, any help will be appreciated
Reply


Messages In This Thread
Connecting lists for tree view - by minasal - Feb-05-2019, 06:37 PM
RE: Connecting lists for tree view - by ichabod801 - Feb-05-2019, 09:06 PM
RE: Connecting lists for tree view - by minasal - Feb-06-2019, 01:53 AM
RE: Connecting lists for tree view - by ichabod801 - Feb-06-2019, 03:11 AM
RE: Connecting lists for tree view - by minasal - Feb-06-2019, 04:24 AM
RE: Connecting lists for tree view - by ichabod801 - Feb-06-2019, 05:29 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Split dict of lists into smaller dicts of lists. pcs3rd 3 2,376 Sep-19-2020, 09:12 AM
Last Post: ibreeden
  sort lists of lists with multiple criteria: similar values need to be treated equal stillsen 2 3,282 Mar-20-2019, 08:01 PM
Last Post: stillsen
  Convert tree to list of lists Dylan_T_Rabbit 2 11,739 Jul-12-2017, 02:09 PM
Last Post: Dylan_T_Rabbit

Forum Jump:

User Panel Messages

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