Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

layering rectangles behind function plot (setZValue())

  • Loading branch information...
commit 43384d28a304c9d45d76b2783fa56bf664255ce2 1 parent 5607a83
maettu authored

Showing 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

  1. +5 0 integrale.pyw
5 integrale.pyw
@@ -119,6 +119,8 @@ class MainWindow( QDialog ):
119 119 QPointF( 0, 0 ) , QPointF( 1, 0 ) )
120 120 )
121 121 self.rectanglesFunction[i].setVisible( False )
  122 + # sets rectangle behind functionPlot
  123 + self.rectanglesFunction[i].setZValue( 2 )
122 124
123 125 #~ self.rectanglesIntegral.append(
124 126 #~ self.ccsIntegral.addLine( QPointF(0,0), QPointF(1,0), False, False, 'blue' )
@@ -128,6 +130,7 @@ class MainWindow( QDialog ):
128 130 self.ccsIntegral.addPoint( 0, 0, 5, 0, 0, 200 )
129 131 )
130 132 self.pointsIntegral[i].setVisible( False )
  133 + self.pointsIntegral[i].setZValue( 2 )
131 134
132 135 self.numberRectanglesSpinBox = QSpinBox()
133 136 self.numberRectanglesSpinBox.setMinimum ( 1 )
@@ -149,10 +152,12 @@ class MainWindow( QDialog ):
149 152
150 153
151 154 self.functionPlot = self.ccsFunction.addFunction( self.function )
  155 + self.functionPlot.setZValue( 1 )
152 156
153 157 self.changeFunction()
154 158
155 159 self.integralPlot = self.ccsIntegral.addFunction( self.integral )
  160 + self.integralPlot.setZValue( 1 )
156 161
157 162 self.scaleInButton = QPushButton( "scale in" )
158 163 self.scaleOutButton = QPushButton( "scale out" )

0 comments on commit 43384d2

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