10se1ucgo / pyjam

An open source, cross-platform audio player for Source and GoldSrc engine based games, written in Python
http://10se1ucgo.github.io/pyjam
GNU Lesser General Public License v3.0
31 stars 4 forks source link

GUI bug on OSX #3

Closed gabsens closed 8 years ago

gabsens commented 8 years ago

After adding a song in the program, left-clicking on the line it has in the GUI produces an error.

An error has occured!

Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/ObjectListView/ObjectListView.py", line 1668, in _HandleLeftDown (row, flags, subitem) = self.HitTestSubItem(evt.GetPosition()) File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/ObjectListView/ObjectListView.py", line 1362, in HitTestSubItem if (scrolledX - left) < self.smallImageList.GetSize(0)[0]: AttributeError: 'NoneType' object has no attribute 'GetSize'

After closing the error message, pyjam still works fine.

INFORMATION:

LOG:

  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/ObjectListView/ObjectListView.py", line 1668, in _HandleLeftDown
    (row, flags, subitem) = self.HitTestSubItem(evt.GetPosition())
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/ObjectListView/ObjectListView.py", line 1362, in HitTestSubItem
    if (scrolledX - left) < self.smallImageList.GetSize(0)[0]:
AttributeError: 'NoneType' object has no attribute 'GetSize'
10se1ucgo commented 8 years ago

Yeah, this is an error with ObjectListView (the ListCtrl widget wrapper). I had that on Linux as well. I'm not exactly sure as to WHY, but I'll have to look into it.

10se1ucgo commented 8 years ago

I'll likely fork OLV, patch it and put it in GitHub.

10se1ucgo commented 8 years ago

Do not ask why this worked. I do not know why this worked. OLV must be broken, or something.