Thanks, I didn't get that bug because it only appears if the border
decorations were in a state that I didn't happen to have, but it is
hopefully fixed now.
As it happens, the CheckButtons code (which is what threw the exception)
used to (incorrectly) not implement which of the check buttons were
selected during initialisation. Unfortunately now that this is
implemented (as of yesterday on the update server) it might find other
errors like this, for a technical reason I won't bore you with.
Wayne
On Fri, 21 May 2010, Vicky Higman wrote:
> Ooops - I fear something when wrong here - I am now no longer able to select a
> window in the top drop-down menu - <None> is now the only option. And the
> Spectra, Peak Lists and Region tabs are totally empty... And opening the Print
> Window pop-up gives the tracback below.
>
> Vicky
>
> >>> Exception in Tkinter callback
> Traceback (most recent call last):
> File "ccpnmr/python2.5/lib/python2.5/lib-tk/Tkinter.py", line 1403, in
> __call__
> return self.func(*args)
> File "/opt/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/AnalysisPopup.py", line
> 2317, in printWindow
> popup = self.openPopup('print_window', PrintWindowPopup)
> File "/opt/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/AnalysisPopup.py", line
> 1596, in openPopup
> transient=transient, *args, **kw)
> File "/opt/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/popups/PrintWindow.py",
> line 155, in __init__
> BasePopup.__init__(self, parent=parent, title=title, **kw)
> File "ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/popups/BasePopup.py", line 94,
> in __init__
> File "/opt/ccpnmr/ccpnmr2.1/python/memops/editor/BasePopup.py", line 85, in
> __init__
> memops.gui.BasePopup.BasePopup.__init__(self, parent, *args, **kw)
> File "ccpnmr/ccpnmr2.1/python/memops/gui/BasePopup.py", line 128, in __init__
> File "/opt/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/popups/PrintWindow.py",
> line 194, in body
> setOption=setOption, haveTicks=True)
> File "/opt/ccpnmr/ccpnmr2.1/python/memops/gui/PrintFrame.py", line 405, in
> __init__
> tipTexts=tipTexts)
> File "/opt/ccpnmr/ccpnmr2.1/python/memops/gui/CheckButtons.py", line 105, in
> __init__
> selected=selected[n])
> IndexError: list index out of range
>
>
>
>
> On 20 May 2010 17:28, Wayne Boucher <[log in to unmask]> wrote:
> Hmmm, that seems to have been several bugs all lumped into together.
> I hope I've sorted most/all of those now.
>
>
> Wayne
>
> On Thu, 20 May 2010, Vicky Higman wrote:
>
> That's great - thanks.
> BTW, is there a particular reason why the file name, axis
> labels and override
> regions are saved (when saving the project), but the scaling,
> page orientation
> and tick options aren't?
>
> Vicky
>
>
>
> On 20 May 2010 15:26, Wayne Boucher <[log in to unmask]>
> wrote:
> Thanks, that should be fixed now (I could have sworn I
> tried this
> before but evidently not).
>
> Wayne
>
>
> On Thu, 20 May 2010, Vicky Higman wrote:
>
> Hi,
>
> I tried printing something in the following way: in the
> "Peak
> Lists" tab I
> selected a peak list to be drawn, but left the "peak
> font"
> column as "No peak
> text", as I just wanted the X's and not the labels to be
> printed. I then got
> the following traceback. Help greatly appreciated.
>
> Thanks,
>
> Vicky
>
>
> Exception in Tkinter callback
> Traceback (most recent call last):
> File
> "ccpnmr/python2.5/lib/python2.5/lib-tk/Tkinter.py",
> line 1403, in
> __call__
> return self.func(*args)
> File
>
> "/opt/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/popups/PrintWindow.py",
> line 382, in saveFile
> major_minor_dict)
> File
>
> "/opt/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/core/PrintBasic.py",
> line
> 71, in printWindow
> windowDraw.drawAll(handlers)
> File
>
> "/opt/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/core/WindowDraw.py",
> line
> 1638, in drawAll
> drawRow(handlers, object, j)
> File
>
> "/opt/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/core/WindowDraw.py",
> line
> 1620, in drawRow
> drawCanvas(handlers[row][i], object, row, i)
> File
>
> "/opt/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/core/WindowDraw.py",
> line
> 1607, in drawCanvas
> self.drawCanvasReal(handler, object, row, col)
> File
>
> "/opt/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/core/WindowDraw.py",
> line
> 1611, in drawCanvasReal
> self.doCanvas(handler, object, row, col)
> File
>
> "/opt/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/core/WindowDraw.py",
> line
> 1544, in doCanvas
> self.drawViewPeaks(handler, view, row, col)
> File
>
> "/opt/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/core/WindowDraw.py",
> line
> 1303, in drawViewPeaks
> drawMethod, intensityMax, volumeMax, xpix, ypix)
> File
>
> "/opt/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/core/WindowDraw.py",
> line
> 911, in drawViewTilePeaks
> self.setHandlerFont(handler, name, size)
> File
>
> "/opt/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/core/WindowDraw.py",
> line
> 1189, in setHandlerFont
> size = int(size)
> ValueError: invalid literal for int() with base 10:
> 'peak'
>
>
>
>
> --
> ****************************************************
> Dr. Victoria A. Higman
>
> Leibniz-Institut fuer Molekulare Pharmakologie (FMP)
> NMR-Supported Structural Biology
> Robert-Roessle-Str. 10
> 13125 Berlin
> Germany
> and
> School of Chemistry
> University of Bristol
> Bristol BS8 1TS
> United Kingdom
>
> Phone: +44-117-954 6325
> E-mail: [log in to unmask] (or [log in to unmask])
>
> http://www.protein-nmr.org.uk
> ****************************************************
>
>
>
>
> --
> ****************************************************
> Dr. Victoria A. Higman
>
> Leibniz-Institut fuer Molekulare Pharmakologie (FMP)
> NMR-Supported Structural Biology
> Robert-Roessle-Str. 10
> 13125 Berlin
> Germany
> and
> School of Chemistry
> University of Bristol
> Bristol BS8 1TS
> United Kingdom
>
> Phone: +44-117-954 6325
> E-mail: [log in to unmask] (or [log in to unmask])
>
> http://www.protein-nmr.org.uk
> ****************************************************
>
>
>
>
> --
> ****************************************************
> Dr. Victoria A. Higman
>
> Leibniz-Institut fuer Molekulare Pharmakologie (FMP)
> NMR-Supported Structural Biology
> Robert-Roessle-Str. 10
> 13125 Berlin
> Germany
> and
> School of Chemistry
> University of Bristol
> Bristol BS8 1TS
> United Kingdom
>
> Phone: +44-117-954 6325
> E-mail: [log in to unmask] (or [log in to unmask])
>
> http://www.protein-nmr.org.uk
> ****************************************************
>
>
|