Changeset 3567


Ignore:
Timestamp:
Aug 23, 2018 10:49:12 AM (3 years ago)
Author:
vondreele
Message:

fix wx.wx bug in G2constrGUI
better formatting of Platform: line on console
fix bug in plotting rigid bodies problem with SetCurrent?

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIconstrGUI.py

    r3510 r3567  
    18111811                rbData['VectRef'][imag] = Obj.GetValue()
    18121812                       
    1813             magSizer = wx.wx.BoxSizer(wx.HORIZONTAL)
     1813            magSizer = wx.BoxSizer(wx.HORIZONTAL)
    18141814            magSizer.Add(wx.StaticText(VectorRBDisplay,-1,'Translation magnitude: '),
    18151815                0,wx.ALIGN_CENTER_VERTICAL)
     
    22192219        for rbid in data['RBIds']['Residue']:
    22202220            RBnames.update({data['Residue'][rbid]['RBname']:rbid,})
     2221        if not RBnames:
     2222            return
    22212223        rbchoice = RBnames.keys()
    22222224        ResidueRBSizer = wx.BoxSizer(wx.VERTICAL)
  • trunk/GSASIIdataGUI.py

    r3565 r3567  
    347347        except ImportError:
    348348            print ("Image module not present; Note that PIL (Python Imaging Library) or pillow is needed for some image operations")
    349     print ("  Platform:   %s%s%s"%(sys.platform,platform.architecture()[0],platform.machine()))
     349    print ("  Platform:   %s %s %s"%(sys.platform,platform.architecture()[0],platform.machine()))
    350350    try:
    351351        import mkl
  • trunk/GSASIIplot.py

    r3565 r3567  
    82438243    Page.camera['position'] = defaults['cameraPos']
    82448244    Page.camera['backColor'] = np.array([0,0,0,0])
    8245     Page.canvas.SetCurrent()
     8245    try:
     8246        if Page.context: Page.canvas.SetCurrent(Page.context)
     8247    except:
     8248        pass
    82468249    Draw('main')
    82478250    Draw('main')    #to fill both buffers so save works
Note: See TracChangeset for help on using the changeset viewer.