Changeset 8252:fc502493965c in orange
- Timestamp:
- 08/22/11 12:56:36 (22 months ago)
- Branch:
- default
- Convert:
- c27641d2087ec54b140333df041d50a23e1622aa
- Location:
- orange/OrangeWidgets
- Files:
-
- 3 edited
-
OWFreeVizOptimization.py (modified) (3 diffs)
-
plot/owplot.py (modified) (2 diffs)
-
plot/owplotgui.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
orange/OrangeWidgets/OWFreeVizOptimization.py
r6538 r8252 256 256 self.cancelOptimization = 0 257 257 #qApp.processEvents() 258 259 if hasattr(self.graph, 'animate_points'): 260 self.graph_is_animated = self.graph.animate_points 261 self.graph.animate_points = False 258 262 259 263 ns = FreeViz.optimizeSeparation(self, self.stepsBeforeUpdate, singleStep, self.parentWidget.distances) … … 267 271 def stopOptimization(self): 268 272 self.cancelOptimization = 1 273 if hasattr(self, 'graph_is_animated'): 274 self.graph.animate_points = self.graph_is_animated 269 275 270 276 # # ############################################################# … … 422 428 ow.show() 423 429 a.exec_() 430 -
orange/OrangeWidgets/plot/owplot.py
r8241 r8252 1576 1576 def update_animations(self, use_animations=None): 1577 1577 if use_animations is not None: 1578 self.use_animations = use_animations 1578 self.animate_plot = use_animations 1579 self.animate_points = use_animations 1579 1580 1580 1581 def update_performance(self, num_points = None): … … 1586 1587 num_points = sum( len(c.points()) for c in self.curves ) 1587 1588 if num_points > self.disable_animations_threshold: 1588 qDebug('Disabling animations')1589 self.disabled_animate_points = self.animate_points 1589 1590 self.animate_points = False 1591 1592 self.disabled_animate_plot = self.animate_plot 1590 1593 self.animate_plot = False 1594 1595 self.disabled_antialias_lines = self.animate_points 1591 1596 self.antialias_lines = False 1592 else: 1593 qDebug('Enabling animations') 1594 self.animate_points = True 1595 self.animate_plot = True 1596 self.antialias_lines = True 1597 1598 elif hasattr(self, 'disabled_animate_points'): 1599 self.animate_points = self.disabled_animate_points 1600 del self.disabled_animate_points 1601 1602 self.animate_plot = self.disabled_animate_plot 1603 del self.disabled_animate_plot 1604 1605 self.antialias_lines = self.disabled_antialias_lines 1606 del self.disabled_antialias_lines 1597 1607 1598 1608 def animate(self, target, prop_name, end_val, duration = None, start_val = None): -
orange/OrangeWidgets/plot/owplotgui.py
r8223 r8252 315 315 and the callback ``cb_name`` is called. 316 316 ''' 317 OWGUI.checkBox(widget, self._plot, value, label, callback=self._get_callback(cb_name)) 317 OWGUI.checkBox(widget, self._plot, value, label, callback=self._get_callback(cb_name)) 318 318 319 319 def antialiasing_check_box(self, widget):
Note: See TracChangeset
for help on using the changeset viewer.
