Changeset 34f23c8 in sasview for src/sas/sasgui/plottools/toolbar.py
- Timestamp:
- Mar 20, 2019 10:06:22 AM (5 years ago)
- Branches:
- ticket-1249
- Children:
- 9305b46
- Parents:
- 09d7021
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/plottools/toolbar.py
rcb64d86 r34f23c8 158 158 """ 159 159 _dc = self.GetDC() 160 (_dcX, _dcY) = _dc.GetSizeTuple()161 (_bmpX,_bmpY)= self.canvas.GetSize()160 _dcX, _dcY = _dc.GetSize() 161 _bmpX, _bmpY = self.canvas.GetSize() 162 162 _scale = min(_dcX/_bmpX, _dcY/_bmpY) 163 163 _dc.SetUserScale(_scale, _scale)
Note: See TracChangeset
for help on using the changeset viewer.