4 import sys
, os
, re
, string
, ConfigParser
5 sys
.path
.append('GuiModules')
6 sys
.path
.append('SrcModules')
9 from PyQt4
import QtGui
, QtCore
10 from vtf_gui
import Ui_Vtf
12 class VtfWindow(Ui_Vtf
):
21 def FinalizeGui(self
):
22 QtCore
.QObject
.connect(ui
.SP_Denti
, QtCore
.SIGNAL("valueChanged (int)"), self
.DentiMod
)
23 QtCore
.QObject
.connect(ui
.LE_Diametro
, QtCore
.SIGNAL("textChanged (QString)"), self
.DiamMod
)
24 QtCore
.QObject
.connect(ui
.LE_VelTaglio
, QtCore
.SIGNAL("textChanged (QString)"), self
.VelTaglioMod
)
25 QtCore
.QObject
.connect(ui
.LE_AvaDente
, QtCore
.SIGNAL("textChanged (QString)"), self
.AvaDentMod
)
28 # Calcolo il numero di giri
29 # Controllo che tutti i valori necessari siano diversi da zero
32 def DentiMod(self
, i
):
38 def DiamMod(self
, text
):
40 self
.diametro
= float(text
)
43 ui
.LE_Diametro
.setText(text
[:-1])
45 def VelTaglioMod(self
, text
):
47 self
.vel_taglio
= float(text
)
50 ui
.LE_VelTaglio
.setText(text
[:-1])
52 def AvaDentMod(self
, text
):
54 self
.vel_taglio
= float(text
)
57 ui
.LE_AvaDente
.setText(text
[:-1])
59 def CheckValuesAvanz(self
):
62 if av
== 0 or de
== 0:
68 app
= QtGui
.QApplication(sys
.argv
)
69 window
= QtGui
.QDialog()