Skip to content
Browse files

layering rectangles behind function plot (setZValue())

  • Loading branch information...
1 parent 5607a83 commit 43384d28a304c9d45d76b2783fa56bf664255ce2 @maettu committed Oct 27, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 integrale.pyw
View
5 integrale.pyw
@@ -119,6 +119,8 @@ class MainWindow( QDialog ):
QPointF( 0, 0 ) , QPointF( 1, 0 ) )
)
self.rectanglesFunction[i].setVisible( False )
+ # sets rectangle behind functionPlot
+ self.rectanglesFunction[i].setZValue( 2 )
#~ self.rectanglesIntegral.append(
#~ self.ccsIntegral.addLine( QPointF(0,0), QPointF(1,0), False, False, 'blue' )
@@ -128,6 +130,7 @@ class MainWindow( QDialog ):
self.ccsIntegral.addPoint( 0, 0, 5, 0, 0, 200 )
)
self.pointsIntegral[i].setVisible( False )
+ self.pointsIntegral[i].setZValue( 2 )
self.numberRectanglesSpinBox = QSpinBox()
self.numberRectanglesSpinBox.setMinimum ( 1 )
@@ -149,10 +152,12 @@ class MainWindow( QDialog ):
self.functionPlot = self.ccsFunction.addFunction( self.function )
+ self.functionPlot.setZValue( 1 )
self.changeFunction()
self.integralPlot = self.ccsIntegral.addFunction( self.integral )
+ self.integralPlot.setZValue( 1 )
self.scaleInButton = QPushButton( "scale in" )
self.scaleOutButton = QPushButton( "scale out" )

0 comments on commit 43384d2

Please sign in to comment.
Something went wrong with that request. Please try again.