Changeset 4424


Ignore:
Timestamp:
May 17, 2020 1:36:19 PM (3 years ago)
Author:
toby
Message:

fix RB selection with 1 RB

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r4423 r4424  
    43504350        def OnRMCselect(event):
    43514351            G2frame.RMCchoice = RMCsel.GetStringSelection()
    4352             UpdateRMC()
     4352            wx.CallAfter(UpdateRMC)
    43534353           
    43544354        def GetAtmChoice(RMCPdict):
     
    95579557            def OnRBSel(event):
    95589558                selection = rbSel.GetValue()
     9559                if selection not in rbNames:
     9560                    return
    95599561                rbType,rbId = rbNames[selection]
    95609562                data['testRBObj']['rbAtTypes'] = RBData[rbType][rbId]['rbTypes']
     
    97689770                topSizer = wx.BoxSizer(wx.HORIZONTAL)
    97699771                topSizer.Add(wx.StaticText(RigidBodies,-1,'Select rigid body model'),0,WACV)
    9770                 rbSel = wx.ComboBox(RigidBodies,-1,value='',choices=list(rbNames.keys()),
     9772                rbSel = wx.ComboBox(RigidBodies,-1,value='',choices=['']+list(rbNames.keys()),
    97719773                    style=wx.CB_READONLY|wx.CB_DROPDOWN)
    97729774                rbSel.Bind(wx.EVT_COMBOBOX, OnRBSel)
Note: See TracChangeset for help on using the changeset viewer.