Ignore:
Timestamp:
May 19, 2021 9:32:00 PM (7 months ago)
Author:
toby
Message:

fix CIF exports

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIctrlGUI.py

    r4899 r4909  
    14621462                if sizevals[i]: kargs['size']=sizevals[i]
    14631463            if CopyButton:
    1464                 import wx.lib.colourselect as wscs  # is there a way to test?
    1465                 but = wscs.ColourSelect(label='v', # would like to use u'\u2193' or u'\u25BC' but not in WinXP
    1466                     parent=panel,colour=(255,255,200),size=wx.Size(30,23),
    1467                     style=wx.RAISED_BORDER)
    1468                 but.Bind(wx.EVT_BUTTON, self._OnCopyButton)
    1469                 if 'phoenix' in wx.version():
    1470                     but.SetToolTip('Press to copy adjacent value to all rows below')
     1464                if i+1 == len(dictlst):
     1465                    but = (-1,-1)
    14711466                else:
    1472                     but.SetToolTipString('Press to copy adjacent value to all rows below')
    1473                 self.ButtonIndex[but] = i
     1467                    import wx.lib.colourselect as wscs  # is there a way to test?
     1468                    but = wscs.ColourSelect(label='v', # would like to use u'\u2193' or u'\u25BC' but not in WinXP
     1469                                            parent=panel,colour=(255,255,200),size=wx.Size(30,23),
     1470                                            style=wx.RAISED_BORDER)
     1471                    but.Bind(wx.EVT_BUTTON, self._OnCopyButton)
     1472                    if 'phoenix' in wx.version():
     1473                        but.SetToolTip('Press to copy adjacent value to all rows below')
     1474                    else:
     1475                        but.SetToolTipString('Press to copy adjacent value to all rows below')
     1476                    self.ButtonIndex[but] = i
    14741477                subSizer.Add(but)
    14751478            # create the validated TextCrtl, store it and add it to the sizer
Note: See TracChangeset for help on using the changeset viewer.