-
Notifications
You must be signed in to change notification settings - Fork 0
/
GUI.py
626 lines (618 loc) · 31.6 KB
/
GUI.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'GUI.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialog.resize(861, 431)
Dialog.setAutoFillBackground(False)
self.groupBox = QtWidgets.QGroupBox(Dialog)
self.groupBox.setGeometry(QtCore.QRect(10, 10, 531, 171))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.groupBox.setFont(font)
self.groupBox.setObjectName("groupBox")
self.pushButton_getdata = QtWidgets.QPushButton(self.groupBox)
self.pushButton_getdata.setGeometry(QtCore.QRect(10, 20, 211, 31))
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.pushButton_getdata.setFont(font)
self.pushButton_getdata.setObjectName("pushButton_getdata")
self.label_9 = QtWidgets.QLabel(self.groupBox)
self.label_9.setGeometry(QtCore.QRect(60, 100, 81, 21))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(False)
font.setWeight(50)
self.label_9.setFont(font)
self.label_9.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_9.setObjectName("label_9")
self.textEdit_filepath = QtWidgets.QTextEdit(self.groupBox)
self.textEdit_filepath.setEnabled(False)
self.textEdit_filepath.setGeometry(QtCore.QRect(230, 30, 291, 61))
font = QtGui.QFont()
font.setPointSize(8)
font.setBold(False)
font.setWeight(50)
self.textEdit_filepath.setFont(font)
self.textEdit_filepath.setObjectName("textEdit_filepath")
self.label_11 = QtWidgets.QLabel(self.groupBox)
self.label_11.setGeometry(QtCore.QRect(230, 10, 101, 16))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.label_11.setFont(font)
self.label_11.setObjectName("label_11")
self.doubleSpinBox_tracklength = QtWidgets.QDoubleSpinBox(self.groupBox)
self.doubleSpinBox_tracklength.setEnabled(False)
self.doubleSpinBox_tracklength.setGeometry(QtCore.QRect(150, 100, 101, 22))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.doubleSpinBox_tracklength.setFont(font)
self.doubleSpinBox_tracklength.setAlignment(QtCore.Qt.AlignCenter)
self.doubleSpinBox_tracklength.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.doubleSpinBox_tracklength.setSpecialValueText("")
self.doubleSpinBox_tracklength.setDecimals(4)
self.doubleSpinBox_tracklength.setMaximum(1000.0)
self.doubleSpinBox_tracklength.setSingleStep(0.0)
self.doubleSpinBox_tracklength.setObjectName("doubleSpinBox_tracklength")
self.pushButton_graphtrack = QtWidgets.QPushButton(self.groupBox)
self.pushButton_graphtrack.setGeometry(QtCore.QRect(10, 60, 211, 31))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.pushButton_graphtrack.setFont(font)
self.pushButton_graphtrack.setObjectName("pushButton_graphtrack")
self.doubleSpinBox_resolution = QtWidgets.QDoubleSpinBox(self.groupBox)
self.doubleSpinBox_resolution.setEnabled(False)
self.doubleSpinBox_resolution.setGeometry(QtCore.QRect(420, 100, 101, 22))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.doubleSpinBox_resolution.setFont(font)
self.doubleSpinBox_resolution.setAlignment(QtCore.Qt.AlignCenter)
self.doubleSpinBox_resolution.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.doubleSpinBox_resolution.setSpecialValueText("")
self.doubleSpinBox_resolution.setDecimals(5)
self.doubleSpinBox_resolution.setMaximum(10.0)
self.doubleSpinBox_resolution.setSingleStep(0.0)
self.doubleSpinBox_resolution.setObjectName("doubleSpinBox_resolution")
self.label_16 = QtWidgets.QLabel(self.groupBox)
self.label_16.setGeometry(QtCore.QRect(310, 100, 101, 21))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(False)
font.setWeight(50)
self.label_16.setFont(font)
self.label_16.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_16.setObjectName("label_16")
self.label_20 = QtWidgets.QLabel(self.groupBox)
self.label_20.setGeometry(QtCore.QRect(250, 140, 161, 21))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(False)
font.setWeight(50)
self.label_20.setFont(font)
self.label_20.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_20.setObjectName("label_20")
self.doubleSpinBox_datafreq = QtWidgets.QDoubleSpinBox(self.groupBox)
self.doubleSpinBox_datafreq.setEnabled(False)
self.doubleSpinBox_datafreq.setGeometry(QtCore.QRect(420, 140, 101, 22))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.doubleSpinBox_datafreq.setFont(font)
self.doubleSpinBox_datafreq.setAlignment(QtCore.Qt.AlignCenter)
self.doubleSpinBox_datafreq.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.doubleSpinBox_datafreq.setSpecialValueText("")
self.doubleSpinBox_datafreq.setDecimals(1)
self.doubleSpinBox_datafreq.setMaximum(10000.0)
self.doubleSpinBox_datafreq.setSingleStep(0.0)
self.doubleSpinBox_datafreq.setObjectName("doubleSpinBox_datafreq")
self.label_21 = QtWidgets.QLabel(self.groupBox)
self.label_21.setGeometry(QtCore.QRect(10, 140, 131, 21))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(False)
font.setWeight(50)
self.label_21.setFont(font)
self.label_21.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_21.setObjectName("label_21")
self.spinBox_dataN = QtWidgets.QSpinBox(self.groupBox)
self.spinBox_dataN.setEnabled(False)
self.spinBox_dataN.setGeometry(QtCore.QRect(150, 140, 101, 22))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
font.setKerning(True)
self.spinBox_dataN.setFont(font)
self.spinBox_dataN.setAlignment(QtCore.Qt.AlignCenter)
self.spinBox_dataN.setReadOnly(False)
self.spinBox_dataN.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.spinBox_dataN.setMinimum(0)
self.spinBox_dataN.setMaximum(100000)
self.spinBox_dataN.setObjectName("spinBox_dataN")
self.groupBox_2 = QtWidgets.QGroupBox(Dialog)
self.groupBox_2.setGeometry(QtCore.QRect(270, 190, 271, 141))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.groupBox_2.setFont(font)
self.groupBox_2.setObjectName("groupBox_2")
self.label_8 = QtWidgets.QLabel(self.groupBox_2)
self.label_8.setGeometry(QtCore.QRect(-10, 20, 161, 21))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(False)
font.setWeight(50)
self.label_8.setFont(font)
self.label_8.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_8.setObjectName("label_8")
self.label_6 = QtWidgets.QLabel(self.groupBox_2)
self.label_6.setGeometry(QtCore.QRect(30, 80, 121, 21))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(False)
font.setWeight(50)
self.label_6.setFont(font)
self.label_6.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_6.setObjectName("label_6")
self.label_5 = QtWidgets.QLabel(self.groupBox_2)
self.label_5.setGeometry(QtCore.QRect(10, 50, 141, 21))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(False)
font.setWeight(50)
self.label_5.setFont(font)
self.label_5.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_5.setObjectName("label_5")
self.label_7 = QtWidgets.QLabel(self.groupBox_2)
self.label_7.setGeometry(QtCore.QRect(60, 110, 91, 21))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(False)
font.setWeight(50)
self.label_7.setFont(font)
self.label_7.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_7.setObjectName("label_7")
self.spinBox_dampingfac = QtWidgets.QSpinBox(self.groupBox_2)
self.spinBox_dampingfac.setGeometry(QtCore.QRect(160, 110, 101, 22))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.spinBox_dampingfac.setFont(font)
self.spinBox_dampingfac.setAlignment(QtCore.Qt.AlignCenter)
self.spinBox_dampingfac.setMinimum(1)
self.spinBox_dampingfac.setObjectName("spinBox_dampingfac")
self.doubleSpinBox_shockdisp = QtWidgets.QDoubleSpinBox(self.groupBox_2)
self.doubleSpinBox_shockdisp.setEnabled(True)
self.doubleSpinBox_shockdisp.setGeometry(QtCore.QRect(160, 20, 101, 22))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.doubleSpinBox_shockdisp.setFont(font)
self.doubleSpinBox_shockdisp.setAlignment(QtCore.Qt.AlignCenter)
self.doubleSpinBox_shockdisp.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.doubleSpinBox_shockdisp.setSpecialValueText("")
self.doubleSpinBox_shockdisp.setDecimals(4)
self.doubleSpinBox_shockdisp.setMinimum(0.01)
self.doubleSpinBox_shockdisp.setMaximum(10.0)
self.doubleSpinBox_shockdisp.setSingleStep(0.0)
self.doubleSpinBox_shockdisp.setObjectName("doubleSpinBox_shockdisp")
self.doubleSpinBox_shockspring = QtWidgets.QDoubleSpinBox(self.groupBox_2)
self.doubleSpinBox_shockspring.setGeometry(QtCore.QRect(160, 50, 101, 22))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.doubleSpinBox_shockspring.setFont(font)
self.doubleSpinBox_shockspring.setAlignment(QtCore.Qt.AlignCenter)
self.doubleSpinBox_shockspring.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.doubleSpinBox_shockspring.setSpecialValueText("")
self.doubleSpinBox_shockspring.setDecimals(4)
self.doubleSpinBox_shockspring.setMaximum(10000.0)
self.doubleSpinBox_shockspring.setSingleStep(0.0)
self.doubleSpinBox_shockspring.setObjectName("doubleSpinBox_shockspring")
self.doubleSpinBox_tirespring = QtWidgets.QDoubleSpinBox(self.groupBox_2)
self.doubleSpinBox_tirespring.setGeometry(QtCore.QRect(160, 80, 101, 22))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.doubleSpinBox_tirespring.setFont(font)
self.doubleSpinBox_tirespring.setAlignment(QtCore.Qt.AlignCenter)
self.doubleSpinBox_tirespring.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.doubleSpinBox_tirespring.setSpecialValueText("")
self.doubleSpinBox_tirespring.setDecimals(4)
self.doubleSpinBox_tirespring.setMaximum(10000.0)
self.doubleSpinBox_tirespring.setSingleStep(0.0)
self.doubleSpinBox_tirespring.setObjectName("doubleSpinBox_tirespring")
self.groupBox_3 = QtWidgets.QGroupBox(Dialog)
self.groupBox_3.setGeometry(QtCore.QRect(10, 190, 251, 141))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.groupBox_3.setFont(font)
self.groupBox_3.setObjectName("groupBox_3")
self.label = QtWidgets.QLabel(self.groupBox_3)
self.label.setGeometry(QtCore.QRect(50, 20, 81, 21))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(False)
font.setWeight(50)
self.label.setFont(font)
self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label.setObjectName("label")
self.label_2 = QtWidgets.QLabel(self.groupBox_3)
self.label_2.setGeometry(QtCore.QRect(40, 50, 91, 21))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(False)
font.setWeight(50)
self.label_2.setFont(font)
self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_2.setObjectName("label_2")
self.label_3 = QtWidgets.QLabel(self.groupBox_3)
self.label_3.setGeometry(QtCore.QRect(10, 80, 121, 21))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(False)
font.setWeight(50)
self.label_3.setFont(font)
self.label_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_3.setObjectName("label_3")
self.label_4 = QtWidgets.QLabel(self.groupBox_3)
self.label_4.setGeometry(QtCore.QRect(40, 110, 91, 21))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(False)
font.setWeight(50)
self.label_4.setFont(font)
self.label_4.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_4.setObjectName("label_4")
self.doubleSpinBox_bodyweight = QtWidgets.QDoubleSpinBox(self.groupBox_3)
self.doubleSpinBox_bodyweight.setGeometry(QtCore.QRect(140, 20, 101, 22))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.doubleSpinBox_bodyweight.setFont(font)
self.doubleSpinBox_bodyweight.setAlignment(QtCore.Qt.AlignCenter)
self.doubleSpinBox_bodyweight.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.doubleSpinBox_bodyweight.setSpecialValueText("")
self.doubleSpinBox_bodyweight.setDecimals(4)
self.doubleSpinBox_bodyweight.setMaximum(1000.0)
self.doubleSpinBox_bodyweight.setSingleStep(0.0)
self.doubleSpinBox_bodyweight.setObjectName("doubleSpinBox_bodyweight")
self.doubleSpinBox_CG = QtWidgets.QDoubleSpinBox(self.groupBox_3)
self.doubleSpinBox_CG.setEnabled(False)
self.doubleSpinBox_CG.setGeometry(QtCore.QRect(140, 50, 101, 22))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.doubleSpinBox_CG.setFont(font)
self.doubleSpinBox_CG.setAlignment(QtCore.Qt.AlignCenter)
self.doubleSpinBox_CG.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.doubleSpinBox_CG.setSpecialValueText("")
self.doubleSpinBox_CG.setDecimals(4)
self.doubleSpinBox_CG.setMaximum(1.0)
self.doubleSpinBox_CG.setSingleStep(0.0)
self.doubleSpinBox_CG.setObjectName("doubleSpinBox_CG")
self.doubleSpinBox_wheelweight = QtWidgets.QDoubleSpinBox(self.groupBox_3)
self.doubleSpinBox_wheelweight.setGeometry(QtCore.QRect(140, 80, 101, 22))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.doubleSpinBox_wheelweight.setFont(font)
self.doubleSpinBox_wheelweight.setAlignment(QtCore.Qt.AlignCenter)
self.doubleSpinBox_wheelweight.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.doubleSpinBox_wheelweight.setSpecialValueText("")
self.doubleSpinBox_wheelweight.setDecimals(4)
self.doubleSpinBox_wheelweight.setMaximum(1000.0)
self.doubleSpinBox_wheelweight.setSingleStep(0.0)
self.doubleSpinBox_wheelweight.setObjectName("doubleSpinBox_wheelweight")
self.doubleSpinBox_tireradius = QtWidgets.QDoubleSpinBox(self.groupBox_3)
self.doubleSpinBox_tireradius.setGeometry(QtCore.QRect(140, 110, 101, 22))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.doubleSpinBox_tireradius.setFont(font)
self.doubleSpinBox_tireradius.setAlignment(QtCore.Qt.AlignCenter)
self.doubleSpinBox_tireradius.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.doubleSpinBox_tireradius.setSpecialValueText("")
self.doubleSpinBox_tireradius.setDecimals(4)
self.doubleSpinBox_tireradius.setMaximum(10.0)
self.doubleSpinBox_tireradius.setSingleStep(0.0)
self.doubleSpinBox_tireradius.setObjectName("doubleSpinBox_tireradius")
self.groupBox_4 = QtWidgets.QGroupBox(Dialog)
self.groupBox_4.setGeometry(QtCore.QRect(10, 340, 251, 81))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.groupBox_4.setFont(font)
self.groupBox_4.setObjectName("groupBox_4")
self.label_10 = QtWidgets.QLabel(self.groupBox_4)
self.label_10.setGeometry(QtCore.QRect(20, 20, 111, 21))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(False)
font.setWeight(50)
self.label_10.setFont(font)
self.label_10.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_10.setObjectName("label_10")
self.label_12 = QtWidgets.QLabel(self.groupBox_4)
self.label_12.setGeometry(QtCore.QRect(0, 50, 131, 21))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(False)
font.setWeight(50)
self.label_12.setFont(font)
self.label_12.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_12.setObjectName("label_12")
self.spinBox_wishboneN = QtWidgets.QSpinBox(self.groupBox_4)
self.spinBox_wishboneN.setGeometry(QtCore.QRect(140, 50, 101, 22))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.spinBox_wishboneN.setFont(font)
self.spinBox_wishboneN.setAlignment(QtCore.Qt.AlignCenter)
self.spinBox_wishboneN.setMinimum(1)
self.spinBox_wishboneN.setMaximum(10)
self.spinBox_wishboneN.setObjectName("spinBox_wishboneN")
self.doubleSpinBox_wblength = QtWidgets.QDoubleSpinBox(self.groupBox_4)
self.doubleSpinBox_wblength.setGeometry(QtCore.QRect(140, 20, 101, 22))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.doubleSpinBox_wblength.setFont(font)
self.doubleSpinBox_wblength.setAlignment(QtCore.Qt.AlignCenter)
self.doubleSpinBox_wblength.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.doubleSpinBox_wblength.setSpecialValueText("")
self.doubleSpinBox_wblength.setDecimals(4)
self.doubleSpinBox_wblength.setMaximum(10.0)
self.doubleSpinBox_wblength.setSingleStep(0.0)
self.doubleSpinBox_wblength.setObjectName("doubleSpinBox_wblength")
self.groupBox_5 = QtWidgets.QGroupBox(Dialog)
self.groupBox_5.setGeometry(QtCore.QRect(270, 340, 271, 81))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.groupBox_5.setFont(font)
self.groupBox_5.setObjectName("groupBox_5")
self.label_13 = QtWidgets.QLabel(self.groupBox_5)
self.label_13.setGeometry(QtCore.QRect(40, 20, 101, 21))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(False)
font.setWeight(50)
self.label_13.setFont(font)
self.label_13.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_13.setObjectName("label_13")
self.label_14 = QtWidgets.QLabel(self.groupBox_5)
self.label_14.setGeometry(QtCore.QRect(50, 50, 91, 21))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(False)
font.setWeight(50)
self.label_14.setFont(font)
self.label_14.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_14.setObjectName("label_14")
self.doubleSpinBox_initXvel = QtWidgets.QDoubleSpinBox(self.groupBox_5)
self.doubleSpinBox_initXvel.setGeometry(QtCore.QRect(150, 20, 111, 22))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.doubleSpinBox_initXvel.setFont(font)
self.doubleSpinBox_initXvel.setAlignment(QtCore.Qt.AlignCenter)
self.doubleSpinBox_initXvel.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.doubleSpinBox_initXvel.setSpecialValueText("")
self.doubleSpinBox_initXvel.setDecimals(4)
self.doubleSpinBox_initXvel.setMaximum(1000.0)
self.doubleSpinBox_initXvel.setSingleStep(0.0)
self.doubleSpinBox_initXvel.setObjectName("doubleSpinBox_initXvel")
self.doubleSpinBox_initYvel = QtWidgets.QDoubleSpinBox(self.groupBox_5)
self.doubleSpinBox_initYvel.setEnabled(False)
self.doubleSpinBox_initYvel.setGeometry(QtCore.QRect(150, 50, 111, 22))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.doubleSpinBox_initYvel.setFont(font)
self.doubleSpinBox_initYvel.setAlignment(QtCore.Qt.AlignCenter)
self.doubleSpinBox_initYvel.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.doubleSpinBox_initYvel.setSpecialValueText("")
self.doubleSpinBox_initYvel.setDecimals(4)
self.doubleSpinBox_initYvel.setMaximum(1000.0)
self.doubleSpinBox_initYvel.setSingleStep(0.0)
self.doubleSpinBox_initYvel.setObjectName("doubleSpinBox_initYvel")
self.groupBox_6 = QtWidgets.QGroupBox(Dialog)
self.groupBox_6.setGeometry(QtCore.QRect(550, 10, 301, 371))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.groupBox_6.setFont(font)
self.groupBox_6.setObjectName("groupBox_6")
self.pushButton_solve = QtWidgets.QPushButton(self.groupBox_6)
self.pushButton_solve.setGeometry(QtCore.QRect(10, 20, 281, 31))
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.pushButton_solve.setFont(font)
self.pushButton_solve.setObjectName("pushButton_solve")
self.label_15 = QtWidgets.QLabel(self.groupBox_6)
self.label_15.setGeometry(QtCore.QRect(80, 60, 91, 21))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(False)
font.setWeight(50)
self.label_15.setFont(font)
self.label_15.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_15.setObjectName("label_15")
self.doubleSpinBox_sag = QtWidgets.QDoubleSpinBox(self.groupBox_6)
self.doubleSpinBox_sag.setEnabled(False)
self.doubleSpinBox_sag.setGeometry(QtCore.QRect(180, 60, 111, 22))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.doubleSpinBox_sag.setFont(font)
self.doubleSpinBox_sag.setAlignment(QtCore.Qt.AlignCenter)
self.doubleSpinBox_sag.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.doubleSpinBox_sag.setSpecialValueText("")
self.doubleSpinBox_sag.setDecimals(1)
self.doubleSpinBox_sag.setMaximum(1000.0)
self.doubleSpinBox_sag.setSingleStep(0.0)
self.doubleSpinBox_sag.setObjectName("doubleSpinBox_sag")
self.label_17 = QtWidgets.QLabel(self.groupBox_6)
self.label_17.setGeometry(QtCore.QRect(40, 90, 131, 21))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(False)
font.setWeight(50)
self.label_17.setFont(font)
self.label_17.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_17.setObjectName("label_17")
self.doubleSpinBox_maxsag = QtWidgets.QDoubleSpinBox(self.groupBox_6)
self.doubleSpinBox_maxsag.setEnabled(False)
self.doubleSpinBox_maxsag.setGeometry(QtCore.QRect(180, 90, 111, 22))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.doubleSpinBox_maxsag.setFont(font)
self.doubleSpinBox_maxsag.setAlignment(QtCore.Qt.AlignCenter)
self.doubleSpinBox_maxsag.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.doubleSpinBox_maxsag.setSpecialValueText("")
self.doubleSpinBox_maxsag.setDecimals(1)
self.doubleSpinBox_maxsag.setMaximum(1000.0)
self.doubleSpinBox_maxsag.setSingleStep(0.0)
self.doubleSpinBox_maxsag.setObjectName("doubleSpinBox_maxsag")
self.label_18 = QtWidgets.QLabel(self.groupBox_6)
self.label_18.setGeometry(QtCore.QRect(10, 190, 101, 16))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.label_18.setFont(font)
self.label_18.setObjectName("label_18")
self.textEdit_output = QtWidgets.QTextEdit(self.groupBox_6)
self.textEdit_output.setEnabled(False)
self.textEdit_output.setGeometry(QtCore.QRect(10, 210, 281, 151))
font = QtGui.QFont()
font.setPointSize(8)
font.setBold(False)
font.setWeight(50)
self.textEdit_output.setFont(font)
self.textEdit_output.setObjectName("textEdit_output")
self.pushButton_optimizespring = QtWidgets.QPushButton(self.groupBox_6)
self.pushButton_optimizespring.setGeometry(QtCore.QRect(30, 120, 241, 31))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.pushButton_optimizespring.setFont(font)
self.pushButton_optimizespring.setObjectName("pushButton_optimizespring")
self.doubleSpinBox_shockspringoptimized = QtWidgets.QDoubleSpinBox(self.groupBox_6)
self.doubleSpinBox_shockspringoptimized.setEnabled(False)
self.doubleSpinBox_shockspringoptimized.setGeometry(QtCore.QRect(180, 160, 111, 22))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.doubleSpinBox_shockspringoptimized.setFont(font)
self.doubleSpinBox_shockspringoptimized.setAlignment(QtCore.Qt.AlignCenter)
self.doubleSpinBox_shockspringoptimized.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.doubleSpinBox_shockspringoptimized.setSpecialValueText("")
self.doubleSpinBox_shockspringoptimized.setDecimals(4)
self.doubleSpinBox_shockspringoptimized.setMaximum(10000.0)
self.doubleSpinBox_shockspringoptimized.setSingleStep(0.0)
self.doubleSpinBox_shockspringoptimized.setObjectName("doubleSpinBox_shockspringoptimized")
self.label_19 = QtWidgets.QLabel(self.groupBox_6)
self.label_19.setGeometry(QtCore.QRect(10, 160, 161, 21))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(False)
font.setWeight(50)
self.label_19.setFont(font)
self.label_19.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_19.setObjectName("label_19")
self.pushButton_exit = QtWidgets.QPushButton(Dialog)
self.pushButton_exit.setGeometry(QtCore.QRect(710, 390, 141, 31))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.pushButton_exit.setFont(font)
self.pushButton_exit.setObjectName("pushButton_exit")
self.pushButton_clear = QtWidgets.QPushButton(Dialog)
self.pushButton_clear.setGeometry(QtCore.QRect(550, 390, 141, 31))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.pushButton_clear.setFont(font)
self.pushButton_clear.setObjectName("pushButton_clear")
self.retranslateUi(Dialog)
QtCore.QMetaObject.connectSlotsByName(Dialog)
def retranslateUi(self, Dialog):
_translate = QtCore.QCoreApplication.translate
Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
self.groupBox.setTitle(_translate("Dialog", "Ground Data"))
self.pushButton_getdata.setText(_translate("Dialog", "Load Ground Coords"))
self.label_9.setText(_translate("Dialog", "Track Length"))
self.label_11.setText(_translate("Dialog", "Filepath Chosen"))
self.doubleSpinBox_tracklength.setSuffix(_translate("Dialog", " m"))
self.pushButton_graphtrack.setText(_translate("Dialog", "Graph Chosen Track"))
self.doubleSpinBox_resolution.setSuffix(_translate("Dialog", " m"))
self.label_16.setText(_translate("Dialog", "X-axis Resolution"))
self.label_20.setText(_translate("Dialog", "Data Recording Frequency"))
self.doubleSpinBox_datafreq.setSuffix(_translate("Dialog", " Hz"))
self.label_21.setText(_translate("Dialog", "Number of Data Points"))
self.groupBox_2.setTitle(_translate("Dialog", "Suspension Data"))
self.label_8.setText(_translate("Dialog", "Max Shock Displacement"))
self.label_6.setText(_translate("Dialog", "Tire Stiffness"))
self.label_5.setText(_translate("Dialog", "Shock Springrate"))
self.label_7.setText(_translate("Dialog", "Shock Damping Factor"))
self.doubleSpinBox_shockdisp.setSuffix(_translate("Dialog", " m"))
self.doubleSpinBox_shockspring.setSuffix(_translate("Dialog", " N m"))
self.doubleSpinBox_tirespring.setSuffix(_translate("Dialog", " N m"))
self.groupBox_3.setTitle(_translate("Dialog", "Vehicle Data"))
self.label.setText(_translate("Dialog", "Body Weight"))
self.label_2.setText(_translate("Dialog", "CG Location"))
self.label_3.setText(_translate("Dialog", "Wheel & Tire Weight"))
self.label_4.setText(_translate("Dialog", "Tire Radius"))
self.doubleSpinBox_bodyweight.setSuffix(_translate("Dialog", " kg"))
self.doubleSpinBox_CG.setSuffix(_translate("Dialog", " m"))
self.doubleSpinBox_wheelweight.setSuffix(_translate("Dialog", " kg"))
self.doubleSpinBox_tireradius.setSuffix(_translate("Dialog", " m"))
self.groupBox_4.setTitle(_translate("Dialog", "Wishbone Data"))
self.label_10.setText(_translate("Dialog", "Wishbone Length"))
self.label_12.setText(_translate("Dialog", "Number of Wishbones"))
self.doubleSpinBox_wblength.setSuffix(_translate("Dialog", " m"))
self.groupBox_5.setTitle(_translate("Dialog", "Initial Conditions"))
self.label_13.setText(_translate("Dialog", "Velocity in the X"))
self.label_14.setText(_translate("Dialog", "Velocity in the Y"))
self.doubleSpinBox_initXvel.setSuffix(_translate("Dialog", " m/s"))
self.doubleSpinBox_initYvel.setSuffix(_translate("Dialog", " m/s"))
self.groupBox_6.setTitle(_translate("Dialog", "Calculated Data"))
self.pushButton_solve.setText(_translate("Dialog", "Solve"))
self.label_15.setText(_translate("Dialog", "Suspension Sag"))
self.doubleSpinBox_sag.setSuffix(_translate("Dialog", " %"))
self.label_17.setText(_translate("Dialog", "Total Suspension Sag"))
self.doubleSpinBox_maxsag.setSuffix(_translate("Dialog", " m"))
self.label_18.setText(_translate("Dialog", "Output"))
self.pushButton_optimizespring.setText(_translate("Dialog", "Optimize Shock Springrate for Ideal Sag"))
self.doubleSpinBox_shockspringoptimized.setSuffix(_translate("Dialog", " N m"))
self.label_19.setText(_translate("Dialog", "Optimized Shock Springrate"))
self.pushButton_exit.setText(_translate("Dialog", "Exit"))
self.pushButton_clear.setText(_translate("Dialog", "Clear"))
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
Dialog = QtWidgets.QDialog()
ui = Ui_Dialog()
ui.setupUi(Dialog)
Dialog.show()
sys.exit(app.exec_())