sohailc / DICOM-annotator

3 stars 4 forks source link

Hotkeys are broken #2

Open Korijn opened 9 years ago

Korijn commented 9 years ago

Looks like your (cool!) hotkeys have a bug!

Traceback (most recent call last):
  File "C:\Users\Korijn\Miniconda\envs\DICOM-annotator\lib\site-packages\matplotlib\backends\backend_qt5.py", line 315, in keyPressEvent
    FigureCanvasBase.key_press_event(self, key)
  File "C:\Users\Korijn\Miniconda\envs\DICOM-annotator\lib\site-packages\matplotlib\backend_bases.py", line 1833, in key_press_event
    self.callbacks.process(s, event)
  File "C:\Users\Korijn\Miniconda\envs\DICOM-annotator\lib\site-packages\matplotlib\cbook.py", line 540, in process
    proxy(*args, **kwargs)
  File "C:\Users\Korijn\Miniconda\envs\DICOM-annotator\lib\site-packages\matplotlib\cbook.py", line 415, in __call__
    return mtd(*args, **kwargs)
  File "DICOM-annotator.py", line 132, in keyPress
    drawerName = self.keyMap[key]
AttributeError: 'DICOMViewer' object has no attribute 'keyMap'
sohailc commented 9 years ago

Hmm.. Its a good thing this is still work in progress and I haven't "officially" released my code yet. The bug has a simple fix and I will make sure that my final version is thoroughly tested for bugs!

Thank you,

Sohail

On Mon, Sep 7, 2015 at 10:32 AM, Korijn van Golen notifications@github.com wrote:

Looks like your (cool!) hotkeys have a bug!

Traceback (most recent call last): File "C:\Users\Korijn\Miniconda\envs\DICOM-annotator\lib\site-packages\matplotlib\backends\backend_qt5.py", line 315, in keyPressEvent FigureCanvasBase.key_press_event(self, key) File "C:\Users\Korijn\Miniconda\envs\DICOM-annotator\lib\site-packages\matplotlib\backend_bases.py", line 1833, in key_press_event self.callbacks.process(s, event) File "C:\Users\Korijn\Miniconda\envs\DICOM-annotator\lib\site-packages\matplotlib\cbook.py", line 540, in process proxy(_args, _kwargs) File "C:\Users\Korijn\Miniconda\envs\DICOM-annotator\lib\site-packages\matplotlib\cbook.py", line 415, in call return mtd(_args, _kwargs) File "DICOM-annotator.py", line 132, in keyPress drawerName = self.keyMap[key] AttributeError: 'DICOMViewer' object has no attribute 'keyMap'

— Reply to this email directly or view it on GitHub https://github.com/sohailc/DICOM-annotator/issues/2.

Korijn commented 9 years ago

Of course, no worries. Just thought I'd let you know. :)