Changeset 834


Ignore:
Timestamp:
Jan 17, 2013 10:56:46 AM (9 years ago)
Author:
vondreele
Message:
 
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r833 r834  
    12881288            colUiso = colLabels.index('Uiso')
    12891289            attr = wx.grid.GridCellAttr()
     1290            attr.IncRef()               #fix from Jim Hester
    12901291            attr.SetEditor(GridFractionEditor(Atoms))
    12911292            for c in range(colX,colX+3):
  • trunk/GSASIIplot.py

    r832 r834  
    1111import time
    1212import copy
     13import sys
    1314import os.path
    1415import numpy as np
     
    7677    def __init__(self,parent,id=-1,dpi=None,**kwargs):
    7778        self.figure = wx.Panel.__init__(self,parent,id=id,**kwargs)
    78         self.canvas = wx.glcanvas.GLCanvas(self,-1,**kwargs)
     79        if 'win' in sys.platform:           #Windows already double buffered
     80            self.canvas = wx.glcanvas.GLCanvas(self,-1,**kwargs)
     81        else:                               #fix from Jim Hester for X systems
     82            attribs = (wx.glcanvas.WX_GL_DOUBLEBUFFER,)         
     83            self.canvas = wx.glcanvas.GLCanvas(self,-1,attribList=attribs,**kwargs)
    7984        self.camera = {}
    8085        sizer=wx.BoxSizer(wx.VERTICAL)
Note: See TracChangeset for help on using the changeset viewer.