Changeset 913


Ignore:
Timestamp:
May 16, 2013 3:55:45 PM (9 years ago)
Author:
toby
Message:

add wx.Notebook emulation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIgrid.py

    r912 r913  
    13661366            if self.GetPageText(page) == name:
    13671367                return page
     1368
     1369    def ChangeSelection(self,page):
     1370        # in the wx.Notebook ChangeSelection is like SetSelection, but it
     1371        # does not invoke the event related to pressing the tab button
     1372        # I don't see a way to do that in aui.
     1373        oldPage = self.GetPageIndex()
     1374        self.SetSelection(page)
     1375        return oldPage
    13681376
    13691377    # def __getattribute__(self,name):
Note: See TracChangeset for help on using the changeset viewer.