Skip to content

Commit c459340

Browse files
authored
V1.0.1
1 parent d02cb62 commit c459340

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

source.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def valorispline(x, x_values, a, b, c, d):
152152
layout.addWidget(boxFPO,3,5)
153153
boxFPN.setText("1.5")
154154
layout.addWidget(boxFPN,4,5)
155-
labelFP=QLabel('Enter FPO and FPN')
155+
labelFP=QLabel('Enter FPO and FPN:')
156156
layout.addWidget(labelFP,2,5)
157157

158158
label=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):
201201
biesire=QPushButton("Leave")
202202
layout.addWidget(biesire,12,6,2,1)
203203

204+
about=QPushButton("About")
205+
layout.addWidget(about,11,6,2,1)
206+
204207
#design NPZ
205208
npz=QDialog()
206209
npz.setWindowTitle('NPZ Creator')
@@ -247,7 +250,14 @@ def valorispline(x, x_values, a, b, c, d):
247250
dialogSelectie2.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\nAndrei Ionel - Copyright 2024')
258+
about.setStandardButtons(QMessageBox.StandardButton.Ok)
259+
about.setDefaultButton(QMessageBox.StandardButton.Ok)
260+
about.exec()
251261

252262

253263
def btn_pushed():
@@ -518,6 +528,7 @@ def iesire():
518528
butdiag.clicked.connect(selectFisier)
519529
npzcreator.clicked.connect(execNPZ)
520530
biesire.clicked.connect(iesire)
531+
about.clicked.connect(openAbout)
521532
savername.setEnabled(False)
522533
saverdate.setEnabled(False)
523534
saverdate.setChecked(True)

0 commit comments

Comments
 (0)