Changeset 4042:e2e22a43e58d in orange
 Timestamp:
 08/03/07 19:02:11 (7 years ago)
 Branch:
 default
 Convert:
 9d02ff71e03fb0d10db2000e082be99aabd11331
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

orange/OrangeWidgets/Prototypes/OWNetwork.py
r4041 r4042 286 286 def clickedAttLstBox(self): 287 287 self.graph.setLabelText([self.attributes[i][0] for i in self.markerAttributes]) 288 #save current zoom 289 xmin = self.graph.axisScale(QwtPlot.xBottom).lBound() 290 xmax = self.graph.axisScale(QwtPlot.xBottom).hBound() 291 ymax = self.graph.axisScale(QwtPlot.yLeft).lBound() 292 ymin = self.graph.axisScale(QwtPlot.yLeft).hBound() 293 self.updateCanvas() 294 # set old zoom 295 self.graph.setNewZoom(self.graph.axisScale(QwtPlot.xBottom).lBound(), self.graph.axisScale(QwtPlot.xBottom).hBound(), self.graph.axisScale(QwtPlot.yLeft).lBound(), self.graph.axisScale(QwtPlot.yLeft).hBound(), xmin, xmax, ymax, ymin) 296 297 288 self.graph.updateData() 289 self.graph.replot() 290 298 291 299 292 def clickedTooltipLstBox(self): 300 293 self.graph.setTooltipText([self.attributes[i][0] for i in self.tooltipAttributes]) 301 #save current zoom 302 xmin = self.graph.axisScale(QwtPlot.xBottom).lBound() 303 xmax = self.graph.axisScale(QwtPlot.xBottom).hBound() 304 ymax = self.graph.axisScale(QwtPlot.yLeft).lBound() 305 ymin = self.graph.axisScale(QwtPlot.yLeft).hBound() 306 self.updateCanvas() 307 # set old zoom 308 self.graph.setNewZoom(self.graph.axisScale(QwtPlot.xBottom).lBound(), self.graph.axisScale(QwtPlot.xBottom).hBound(), self.graph.axisScale(QwtPlot.yLeft).lBound(), self.graph.axisScale(QwtPlot.yLeft).hBound(), xmin, xmax, ymax, ymin) 309 310 294 self.graph.updateData() 295 self.graph.replot() 296 311 297 312 298 def testRefresh(self):
Note: See TracChangeset
for help on using the changeset viewer.