Changeset 294efd5 in sasview for sansguiframe/src
- Timestamp:
- Oct 15, 2011 3:12:42 PM (13 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 9d52bcb
- Parents:
- ab638a3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/local_perspectives/plotting/Plotter1D.py
rab638a3 r294efd5 171 171 """ 172 172 # It was found that wx >= 2.9.3 sends an event even if no size changed. 173 # So manually record the size (=x_size) and compare here. 174 print "x", self.x_size, self.GetSize() 173 # So manually recode the size (=x_size) and compare here. 175 174 if self.x_size != None: 176 175 if self.x_size == self.GetSize(): … … 178 177 self.canvas.set_resizing(self.resizing) 179 178 return 180 #self.x_size = self.GetSize()181 179 self.x_size = self.GetSize() 180 182 181 # Ready for another event 183 182 # Do not remove this Skip. Otherwise it will get runtime error on wx>=2.9. … … 188 187 self.parent.set_schedule(True) 189 188 pos_x, pos_y = self.GetPositionTuple() 190 client_size = self.GetClientSize()191 189 if pos_x != 0 and pos_y != 0: 192 self.size, y_size = self.GetClientSizeTuple() 193 x_size = self.size 194 else: 195 tw, th = self.toolbar.GetSizeTuple() 196 x_size, y_size = self.GetClientSizeTuple() 197 self.canvas.SetSize(wx.Size(x_size, th+y_size)) 198 #print "client", self.size,y_size, self.GetClientSize() 190 self.size, _ = self.GetClientSizeTuple() 199 191 200 192 def set_resizing(self, resizing=False):
Note: See TracChangeset
for help on using the changeset viewer.