Changeset 1077 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Oct 3, 2013 1:11:47 PM (9 years ago)
Author:
toby
Message:

cleanup plot & svn bugs; set missing keywords; CIF export done; update docs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r1060 r1077  
    134134        has a child, .canvas; give that child the focus and pass it the event.
    135135        '''
    136         Page = self.nb.GetPage(self.nb.GetSelection())
     136        try:
     137            Page = self.nb.GetPage(self.nb.GetSelection())
     138        except ValueError: # occurs with no plot tabs
     139            return
    137140        try:
    138141            Page.canvas.SetFocus()
Note: See TracChangeset for help on using the changeset viewer.