list controls, drag n drop and wxtrees

Hi Again! :slight_smile:

Come a bit further with my little project since last time, however i have now gotten to a complete
stand still.

Im writing a program that will enable me to check and easily copy file sequences across directories.
So far ive managed to “somewhat” display the files properly but now i would like to be able to
incorporate a drag n drop functionality to copy files. This is where im stuck at the moment.

my_browser_45.py is the file ive been working longest on and is the furthest ive gotten, but
this file is also a big mess, no classes, double instances of functions doing the exact same
job etc :frowning: This is also the file ive been working on since i started with wxPython. It does
however contain some stuff i need in the final version, like a way of concatenating the
display of file sequences, sorting list columns (although buggy in my version with two lists),
and a way of running a little image display program called fcheck on an file sequence.
Im attaching this file too so you can have a look at what im aiming for with the finnished
product.

drag_n_drop_6.py is based on an example i found on the wiki, but this one i got stuck with
pretty quickly because i cant understand how to incorporate the tree browsers, my way of
listing files in directories and how to later fill the list controls with these files. This file
has a lot better code though, (since i didnt write much of it :)). Since this file is much
tidier and better written i was planning to carry on with this file instead.

So my problem is as follows i guess:
How can i get drag_n_drop_6.py to display files from the treebrowser in my listviews,
have it “drag n dropable” between the lists, and also be able to column sort the lists?

Anyhow, if anyone has time to look at it i would be really grateful! Also thanks for taking
your time to read this long email.

v_2.rar (96.3 KB)