Skip to content

Commit 6068ac0

Browse files
committed
qtplasmac: remove unused modules, variables
1 parent 1d4dde9 commit 6068ac0

File tree

19 files changed

+30
-48
lines changed

19 files changed

+30
-48
lines changed

lib/python/plasmac/ellipse.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
import os
2323
import sys
24-
import math
2524
import numpy
2625
import gettext
2726

lib/python/qtvcp/lib/qtplasmac/conv_block.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
from PyQt5.QtCore import Qt, QCoreApplication
2323
from PyQt5.QtWidgets import QLabel, QMessageBox
24-
from PyQt5.QtGui import QPixmap
2524
from qtvcp.core import Status
2625
from importlib import reload
2726
from plasmac import block as BLOCK

lib/python/qtvcp/lib/qtplasmac/conv_bolt.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
from PyQt5.QtCore import Qt, QCoreApplication
2323
from PyQt5.QtWidgets import QLabel, QMessageBox
24-
from PyQt5.QtGui import QPixmap
2524
from importlib import reload
2625
from plasmac import bolt_circle as BOLT
2726

lib/python/qtvcp/lib/qtplasmac/conv_circle.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
from PyQt5.QtCore import Qt, QCoreApplication
2323
from PyQt5.QtWidgets import QLabel, QMessageBox
24-
from PyQt5.QtGui import QPixmap
2524
from importlib import reload
2625
from plasmac import circle as CIRCLE
2726

@@ -156,7 +155,6 @@ def widgets(P, W, Conv):
156155
W.entries.addWidget(W.overcut, 7, 1)
157156
W.entries.addWidget(W.ocLabel, 8, 0)
158157
W.entries.addWidget(W.ocEntry, 8, 1)
159-
from PyQt5.QtWidgets import QSizePolicy
160158
for r in [9,10,11]:
161159
W['s{}'.format(r)] = QLabel('')
162160
W['s{}'.format(r)].setFixedHeight(24)

lib/python/qtvcp/lib/qtplasmac/conv_ellipse.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
from PyQt5.QtCore import Qt, QCoreApplication
2323
from PyQt5.QtWidgets import QLabel, QMessageBox
24-
from PyQt5.QtGui import QPixmap
2524
from importlib import reload
2625
from plasmac import ellipse as ELLIPSE
2726

lib/python/qtvcp/lib/qtplasmac/conv_gusset.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
from PyQt5.QtCore import Qt, QCoreApplication
2323
from PyQt5.QtWidgets import QLabel, QMessageBox
24-
from PyQt5.QtGui import QPixmap
2524
from importlib import reload
2625
from plasmac import gusset as GUSSET
2726

@@ -67,7 +66,7 @@ def auto_preview(P, W, Conv, button=False):
6766
preview(P, W, Conv)
6867

6968
def entry_changed(P, W, Conv, widget):
70-
error = Conv.conv_entry_changed(P, W, widget)
69+
Conv.conv_entry_changed(P, W, widget)
7170

7271
def rad_button_pressed(P, W, Conv, widget):
7372
if widget.text() == _translate('Conversational', 'RADIUS'):

lib/python/qtvcp/lib/qtplasmac/conv_line.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
from PyQt5.QtCore import Qt, QCoreApplication
2323
from PyQt5.QtWidgets import QLabel, QMessageBox
24-
from PyQt5.QtGui import QPixmap
2524
from importlib import reload
2625
from plasmac import line as LINE
2726

lib/python/qtvcp/lib/qtplasmac/conv_polygon.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
from PyQt5.QtCore import Qt, QCoreApplication
2323
from PyQt5.QtWidgets import QLabel, QMessageBox
24-
from PyQt5.QtGui import QPixmap
2524
from importlib import reload
2625
from plasmac import polygon as POLYGON
2726

@@ -68,7 +67,7 @@ def auto_preview(P, W, Conv, button=False):
6867
preview(P, W, Conv)
6968

7069
def entry_changed(P, W, Conv, widget):
71-
error = Conv.conv_entry_changed(P, W, widget)
70+
Conv.conv_entry_changed(P, W, widget)
7271

7372
def mode_changed(P, W, Conv):
7473
if W.mCombo.currentIndex() == 2:

lib/python/qtvcp/lib/qtplasmac/conv_rectangle.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
from PyQt5.QtCore import Qt, QCoreApplication
2323
from PyQt5.QtWidgets import QLabel, QMessageBox
24-
from PyQt5.QtGui import QPixmap
2524
from importlib import reload
2625
from plasmac import rectangle as RECTANGLE
2726

@@ -41,10 +40,6 @@ def preview(P, W, Conv):
4140
styles[n] = 'chamfer'
4241
elif W['r{}Button'.format(n)].text().startswith(_translate('Conversational', 'iRADIUS')):
4342
styles[n] = 'intRadius'
44-
style1 = W.r1Button.text()
45-
style2 = W.r1Button.text()
46-
style3 = W.r1Button.text()
47-
style4 = W.r1Button.text()
4843
error = RECTANGLE.preview(Conv, P.fTmp, P.fNgc, P.fNgcBkp, \
4944
int(W.conv_material.currentText().split(':')[0]), \
5045
W.conv_material.currentText().split(':')[1].strip(), \
@@ -81,7 +76,7 @@ def auto_preview(P, W, Conv, button=False):
8176
preview(P, W, Conv)
8277

8378
def entry_changed(P, W, Conv, widget):
84-
error = Conv.conv_entry_changed(P, W, widget)
79+
Conv.conv_entry_changed(P, W, widget)
8580

8681
def rad_button_pressed(P, W, Conv, button, value):
8782
if button.text().split()[0] == _translate('Conversational', 'RADIUS'):

lib/python/qtvcp/lib/qtplasmac/conv_sector.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
from PyQt5.QtCore import Qt, QCoreApplication
2323
from PyQt5.QtWidgets import QLabel, QMessageBox
24-
from PyQt5.QtGui import QPixmap
2524
from importlib import reload
2625
from plasmac import sector as SECTOR
2726

@@ -66,7 +65,7 @@ def auto_preview(P, W, Conv, button=False):
6665
preview(P, W, Conv)
6766

6867
def entry_changed(P, W, Conv, widget):
69-
error = Conv.conv_entry_changed(P, W, widget)
68+
Conv.conv_entry_changed(P, W, widget)
7069

7170
def widgets(P, W, Conv):
7271
if P.developmentPin.get():

0 commit comments

Comments
 (0)