Skip to content

Commit c982b83

Browse files
committed
[lgtm] Fix variable defined multiple times
1 parent 50a3181 commit c982b83

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

examples/core_display_line_properties.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ def line():
4747
# To do that, we need to do use AIS_Drawer and apply it to ais_line1
4848
width = 1.0
4949
drawer = Prs3d_Drawer()
50-
asp = Prs3d_LineAspect(Quantity_NOC_RED, Aspect_TOL_DASH, width)
5150
ais_line1.SetAttributes(drawer.GetHandle())
5251

5352
display.Context.Display(ais_line1.GetHandle(), False)
@@ -61,6 +60,7 @@ def line():
6160

6261
width = float(i)
6362
drawer = ais_line2.Attributes().GetObject()
63+
# asp : first parameter color, second type, last width
6464
asp = Prs3d_LineAspect(9*i, i, width)
6565
drawer.SetLineAspect(asp.GetHandle())
6666
ais_line2.SetAttributes(drawer.GetHandle())

examples/core_simple_mesh.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ def simple_mesh():
3535
#
3636
# Create the shape
3737
#
38-
shape = BRepPrimAPI_MakeBox(200, 200, 200).Shape()
3938
theBox = BRepPrimAPI_MakeBox(200, 60, 60).Shape()
4039
theSphere = BRepPrimAPI_MakeSphere(gp_Pnt(100, 20, 20), 80).Shape()
4140
shape = BRepAlgoAPI_Fuse(theSphere, theBox).Shape()

src/Display/qtDisplay.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
import os
2424
import sys
2525

26-
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)
27-
log = logging.getLogger(__name__)
28-
2926
from OCC.Display import OCCViewer
3027
from OCC.Display.backend import get_qt_modules
3128

@@ -256,7 +253,6 @@ def mouseReleaseEvent(self, event):
256253
modifiers = event.modifiers()
257254

258255
if event.button() == QtCore.Qt.LeftButton:
259-
pt = point(event.pos())
260256
if self._select_area:
261257
[Xmin, Ymin, dx, dy] = self._drawbox
262258
self._display.SelectArea(Xmin, Ymin, Xmin + dx, Ymin + dy)

0 commit comments

Comments
 (0)