- Timestamp:
- Jan 20, 2021 2:35:12 PM (2 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIconstrGUI.py
r4672 r4782 206 206 return self.labels[row] 207 207 elif col == 1: 208 return int(self.select[row]) 208 if self.select[row]: 209 return '1' 210 else: 211 return '' 209 212 elif col == 2: 210 213 return self.types[row] … … 217 220 self.labels[row] = value 218 221 elif col == 1: 219 self.select[row] = int(value)222 self.select[row] = bool(value) 220 223 elif col == 2: 221 224 self.types[row] = value … … 230 233 return self.colLabels[col] 231 234 def GetRowLabelValue(self,row): 232 return str(row +1)235 return str(row) 233 236 234 237 # Implement "row movement" by updating the pointer array … … 2991 2994 nameSizer = wx.BoxSizer(wx.HORIZONTAL) 2992 2995 nameSizer.Add(wx.StaticText(VectorRBDisplay,-1,'Rigid body name: '),0,WACV) 2993 RBname = wx.TextCtrl(VectorRBDisplay,-1,rbData['RBname']) 2996 RBname = wx.TextCtrl(VectorRBDisplay,-1,rbData['RBname'], 2997 style=wx.TE_PROCESS_ENTER) 2994 2998 RBname.Bind(wx.EVT_LEAVE_WINDOW, OnRBName) 2995 2999 RBname.Bind(wx.EVT_TEXT_ENTER,OnRBName) … … 3284 3288 nameSizer = wx.BoxSizer(wx.HORIZONTAL) 3285 3289 nameSizer.Add(wx.StaticText(ResidueRBDisplay,-1,'Residue name: '),0,WACV) 3286 RBname = wx.TextCtrl(ResidueRBDisplay,-1,rbData['RBname']) 3290 RBname = wx.TextCtrl(ResidueRBDisplay,-1,rbData['RBname'], 3291 style=wx.TE_PROCESS_ENTER) 3287 3292 RBname.Bind(wx.EVT_LEAVE_WINDOW, OnRBName) 3288 3293 RBname.Bind(wx.EVT_TEXT_ENTER,OnRBName) -
trunk/GSASIIplot.py
r4781 r4782 518 518 plotNum = self.plotList.index(label) 519 519 Page = self.nb.GetPage(plotNum) 520 self.SetSelectionNoRefresh(plotNum) # raises plot tab 520 521 521 522 Page.plotInvalid = False # plot has just been drawn -
trunk/GSASIIscriptable.py
r4765 r4782 1121 1121 Below are example commands to install GSAS-II for use for scripting only. 1122 1122 1123 Installing a minimal Python configuration: Note I have chosen below1123 **Installing a minimal Python configuration**: Note I have chosen below 1124 1124 to use the free 1125 1125 miniconda installer from Anaconda, Inc., but there are also plenty of 1126 1126 other ways to install Python, Numpy and Scipy on Linux, Windows and MacOS. 1127 1127 For Linux a reasonable alternative is to install these packages 1128 (and perhaps others ) as supplied bythe Linux dist (``apt-get`` etc.).1128 (and perhaps others as below) using the Linux dist (``apt-get`` etc.). 1129 1129 1130 1130 .. code-block:: bash … … 4257 4257 peaks['sigDict'] = G2pwd.DoPeakFit('LSQ',peaks['peaks'],background,limits, 4258 4258 Parms,Parms2,self.data['data'][1],bxye,[], 4259 False,controls,None)[0]4259 oneCycle=False,controls=controls,dlg=None)[0] 4260 4260 4261 4261 @property
Note: See TracChangeset
for help on using the changeset viewer.