Changeset 4424 for trunk/GSASIIphsGUI.py
- Timestamp:
- May 17, 2020 1:36:19 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIphsGUI.py
r4423 r4424 4350 4350 def OnRMCselect(event): 4351 4351 G2frame.RMCchoice = RMCsel.GetStringSelection() 4352 UpdateRMC()4352 wx.CallAfter(UpdateRMC) 4353 4353 4354 4354 def GetAtmChoice(RMCPdict): … … 9557 9557 def OnRBSel(event): 9558 9558 selection = rbSel.GetValue() 9559 if selection not in rbNames: 9560 return 9559 9561 rbType,rbId = rbNames[selection] 9560 9562 data['testRBObj']['rbAtTypes'] = RBData[rbType][rbId]['rbTypes'] … … 9768 9770 topSizer = wx.BoxSizer(wx.HORIZONTAL) 9769 9771 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()), 9771 9773 style=wx.CB_READONLY|wx.CB_DROPDOWN) 9772 9774 rbSel.Bind(wx.EVT_COMBOBOX, OnRBSel)
Note: See TracChangeset
for help on using the changeset viewer.