ObjectListView 1.2, buggy behavior on mac and windows

I’m using Mike’s code sample with ObjectListView 1.2

http://www.blog.pythonlibrary.org/2009/12/23/wxpython-using-objectlistview-instead-of-a-listctrl/

http://sourceforge.net/projects/objectlistview/files/objectlistview-python/v1.2/

I noticed a few issues when I ran the program on windows and mac.

Windows

The entries inside the first column are indented, the colored rows do not extend to the left of this indentation all the way to start of the column. I’m attaching screenshots to show this issue.

When I click the column title to sort, and then sort the next column, and then sort the next column and so forth, the previous column title becomes indented. I’ve only experienced this particular issue on windows. I’m attaching 4 images to show this issue.

Mac

If I merely click on a cell to edit it but don’t actually edit it and then try to sort the column of that entry, the data changes in that column. I’m attaching screenshots to show this issue.

Has anyone else experienced these issues? I know the wxpython wrapper for objectlistview has not been under active development and the last release was over 5 years ago but are these known issues and are there any fixes to them?

mac1.png

mac2.png

windows1.jpg

windows2.jpg

windows3.jpg

windows4.jpg

Hi,

···

On Friday, January 31, 2014 11:26:25 AM UTC-6, RedHotChiliPepper wrote:

I’m using Mike’s code sample with ObjectListView 1.2

http://www.blog.pythonlibrary.org/2009/12/23/wxpython-using-objectlistview-instead-of-a-listctrl/

http://sourceforge.net/projects/objectlistview/files/objectlistview-python/v1.2/

I noticed a few issues when I ran the program on windows and mac.

Windows

The entries inside the first column are indented, the colored rows do not extend to the left of this indentation all the way to start of the column. I’m attaching screenshots to show this issue.

When I click the column title to sort, and then sort the next column, and then sort the next column and so forth, the previous column title becomes indented. I’ve only experienced this particular issue on windows. I’m attaching 4 images to show this issue.

Mac

If I merely click on a cell to edit it but don’t actually edit it and then try to sort the column of that entry, the data changes in that column. I’m attaching screenshots to show this issue.

Has anyone else experienced these issues? I know the wxpython wrapper for objectlistview has not been under active development and the last release was over 5 years ago but are these known issues and are there any fixes to them?

As I recall, that extra space on Windows is there as a placeholder should the programmer want to add an image to each list item. See the FAQ for OLV for more info:

http://objectlistview.sourceforge.net/python/faq.html#why-is-the-text-of-the-first-column-indented-by-about-20-pixels

  • Mike

Hi,

I'm using Mike's code sample with ObjectListView 1.2

wxPython: Using ObjectListView instead of a ListCtrl - Mouse Vs Python
http://sourceforge.net/projects/objectlistview/files/objectlistview-python/v1.2/

The copy in Mike's medialocker repo has a few corrections, IIRC to do with 2.9x and Phoenix.

https://bitbucket.org/driscollis/medialocker

Sorry can't help on the Mac issue, if you find a solution can you let us know so we can update the repo.

It seems that the OLV author has moved on to .net and is no longer working on the Python version.

Werner

···

On 31/01/2014 18:26, RedHotChiliPepper wrote:

I’m not sure why the entries in the first column are indented in windows but not in Mac, but I can always put a placeholder there.

Mike or werner (or anyone else), can you comment on the other indentation issue of the columns? Not the one about the entries within the first column being indented but the issue where the column header shifts over the right in Windows.

My previous attachments in my original post windows2.jpg and windows3.jpg show my issue on windows. Do you experience this as well?

···

On Friday, January 31, 2014 2:20:52 PM UTC-5, Mike Driscoll wrote:

Hi,

On Friday, January 31, 2014 11:26:25 AM UTC-6, RedHotChiliPepper wrote:

I’m using Mike’s code sample with ObjectListView 1.2

http://www.blog.pythonlibrary.org/2009/12/23/wxpython-using-objectlistview-instead-of-a-listctrl/

http://sourceforge.net/projects/objectlistview/files/objectlistview-python/v1.2/

I noticed a few issues when I ran the program on windows and mac.

Windows

The entries inside the first column are indented, the colored rows do not extend to the left of this indentation all the way to start of the column. I’m attaching screenshots to show this issue.

When I click the column title to sort, and then sort the next column, and then sort the next column and so forth, the previous column title becomes indented. I’ve only experienced this particular issue on windows. I’m attaching 4 images to show this issue.

Mac

If I merely click on a cell to edit it but don’t actually edit it and then try to sort the column of that entry, the data changes in that column. I’m attaching screenshots to show this issue.

Has anyone else experienced these issues? I know the wxpython wrapper for objectlistview has not been under active development and the last release was over 5 years ago but are these known issues and are there any fixes to them?

As I recall, that extra space on Windows is there as a placeholder should the programmer want to add an image to each list item. See the FAQ for OLV for more info:

http://objectlistview.sourceforge.net/python/faq.html#why-is-the-text-of-the-first-column-indented-by-about-20-pixels

  • Mike

OLV uses the native implementation of the listctrl, which explains
differences on different platforms.
I don’t see it when I use wxPython 2.9.5 or Classic 3.0 but I do see
it in Phoenix 3.0.1.
What wxPython version are you using?
I also see it a little for the ‘Genre’ column in the Phoenix
listctrl demo, but not as pronounced, maybe something to do with the
overall column width.
Werner

···

Hi,

  On 01/02/2014 07:38, RedHotChiliPepper wrote:
    I'm not sure why the entries in the first column

are indented in windows but not in Mac, but I can always put a
placeholder there.

      Mike or werner (or anyone else), can you comment on the

other indentation issue of the columns? Not the one about the
entries within the first column being indented but the issue
where the column header shifts over the right in Windows.

My previous attachments in my original post windows2.jpg and windows3.jpg
show my issue on
windows. Do you experience this as well?

I’m using 3.0.0.0 msw (classic).

I’m just going to use a transparent png, like what I’m attaching as a placeholder for the imageGetter in the first column and headerImage for the rest of the columns.

clear16.png

···

On Saturday, February 1, 2014 2:48:38 AM UTC-5, werner wrote:

Hi,

  On 01/02/2014 07:38, RedHotChiliPepper wrote:
    I'm not sure why the entries in the first column

are indented in windows but not in Mac, but I can always put a
placeholder there.

OLV uses the native implementation of the listctrl, which explains

differences on different platforms.

      Mike or werner (or anyone else), can you comment on the

other indentation issue of the columns? Not the one about the
entries within the first column being indented but the issue
where the column header shifts over the right in Windows.

My previous attachments in my original post windows2.jpg and windows3.jpg
show my issue on
windows. Do you experience this as well?

I don't see it when I use wxPython 2.9.5 or Classic 3.0 but I do see

it in Phoenix 3.0.1.

What wxPython version are you using?



I also see it a little for the 'Genre' column in the Phoenix

listctrl demo, but not as pronounced, maybe something to do with the
overall column width.

Werner

Can you post a screenshot of what the finished product looks like? It
seems to me the final result is still not visually all that acceptable,
since there is an indentation in the first column for nothing. This is a
bit of bad UX by Windows, in my opinion.

Would you consider using agw.UltimateListCtrl instead? It is pure Python
and my guess is you should be able to avoid being forced to have this
awkward looking indentation.

Che

···

On Sat, Feb 1, 2014 at 3:03 PM, RedHotChiliPepper < sharrukinjosephson@gmail.com> wrote:

I'm using 3.0.0.0 msw (classic).

I'm just going to use a transparent png, like what I'm attaching as a
placeholder for the imageGetter in the first column and headerImage for the
rest of the columns.