@@ -152,7 +152,7 @@ def valorispline(x, x_values, a, b, c, d):
152152layout .addWidget (boxFPO ,3 ,5 )
153153boxFPN .setText ("1.5" )
154154layout .addWidget (boxFPN ,4 ,5 )
155- labelFP = QLabel ('Enter FPO and FPN' )
155+ labelFP = QLabel ('Enter FPO and FPN: ' )
156156layout .addWidget (labelFP ,2 ,5 )
157157
158158label = QLabel ('Input coefficients for the custom function: f(x)=a0*x^3+b0*x^2+c0*x+d0' )
@@ -201,6 +201,9 @@ def valorispline(x, x_values, a, b, c, d):
201201biesire = QPushButton ("Leave" )
202202layout .addWidget (biesire ,12 ,6 ,2 ,1 )
203203
204+ about = QPushButton ("About" )
205+ layout .addWidget (about ,11 ,6 ,2 ,1 )
206+
204207#design NPZ
205208npz = QDialog ()
206209npz .setWindowTitle ('NPZ Creator' )
@@ -247,7 +250,14 @@ def valorispline(x, x_values, a, b, c, d):
247250dialogSelectie2 .setNameFilter ("Text file (*.txt);;All files (*)" )
248251
249252
250-
253+ def openAbout ():
254+ about = QMessageBox ()
255+ about .setIcon (QMessageBox .Icon .Information )
256+ about .setWindowTitle ('About' )
257+ about .setText ('CubicSplinePyCalc Version 1.0.1\n Andrei Ionel - Copyright 2024' )
258+ about .setStandardButtons (QMessageBox .StandardButton .Ok )
259+ about .setDefaultButton (QMessageBox .StandardButton .Ok )
260+ about .exec ()
251261
252262
253263def btn_pushed ():
@@ -518,6 +528,7 @@ def iesire():
518528butdiag .clicked .connect (selectFisier )
519529npzcreator .clicked .connect (execNPZ )
520530biesire .clicked .connect (iesire )
531+ about .clicked .connect (openAbout )
521532savername .setEnabled (False )
522533saverdate .setEnabled (False )
523534saverdate .setChecked (True )
0 commit comments