Changeset 4955
- Timestamp:
- Jun 13, 2021 9:47:36 PM (2 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIctrlGUI.py
r4922 r4955 5635 5635 s += subs 5636 5636 return s.encode('ascii','replace') 5637 5637 5638 def getTextSize(txt): 5639 'Get the size of the text string txt in points, returns (x,y)' 5640 dc = wx.ScreenDC() 5641 return tuple(dc.GetTextExtent(txt)) 5642 5638 5643 # wx classes for reading various types of data files ###################################################################### 5639 5644 def BlockSelector(ChoiceList, ParentFrame=None,title='Select a block', -
trunk/exports/G2export_CIF.py
r4909 r4955 3049 3049 self.ValidatedControlsList = [] 3050 3050 self.G2frame = parent.G2frame 3051 self.height = G2G.getTextSize('?')[1] 3052 #print('height is ',self.height) 3051 3053 self._fill() 3052 3054 def _fill(self): … … 3218 3220 rw1 = rw.ResizeWidget(self) 3219 3221 ent = G2G.ValidatedTxtCtrl( 3220 rw1,dct,item,size=(100, 20),3222 rw1,dct,item,size=(100, self.height+5), 3221 3223 style=wx.TE_MULTILINE|wx.TE_PROCESS_ENTER, 3222 3224 CIFinput=True,ASCIIonly=True,
Note: See TracChangeset
for help on using the changeset viewer.