• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

int-brain-lab / iblrig / 10568073180

26 Aug 2024 10:13PM UTC coverage: 47.538% (+0.7%) from 46.79%
10568073180

Pull #711

github

eeff82
web-flow
Merge 599c9edfb into ad41db25f
Pull Request #711: 8.23.2

121 of 135 new or added lines in 8 files covered. (89.63%)

1025 existing lines in 22 files now uncovered.

4084 of 8591 relevant lines covered (47.54%)

0.95 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

6.25
/iblrig/gui/ui_update.py
1
# -*- coding: utf-8 -*-
2

3
# Form implementation generated from reading ui file 'iblrig\gui\ui_update.ui'
4
#
5
# Created by: PyQt5 UI code generator 5.15.10
6
#
7
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
8
# run again.  Do not edit this file unless you know what you are doing.
9

10

11
from PyQt5 import QtCore, QtGui, QtWidgets
2✔
12

13

14
class Ui_update(object):
2✔
15
    def setupUi(self, update):
2✔
16
        update.setObjectName("update")
×
17
        update.resize(451, 496)
×
18
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
×
19
        sizePolicy.setHorizontalStretch(0)
×
20
        sizePolicy.setVerticalStretch(0)
×
21
        sizePolicy.setHeightForWidth(update.sizePolicy().hasHeightForWidth())
×
22
        update.setSizePolicy(sizePolicy)
×
23
        icon = QtGui.QIcon()
×
24
        icon.addPixmap(QtGui.QPixmap("iblrig\\gui\\wizard.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
×
25
        update.setWindowIcon(icon)
×
26
        update.setModal(True)
×
27
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(update)
×
28
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
×
29
        self.uiLayoutLogo = QtWidgets.QVBoxLayout()
×
30
        self.uiLayoutLogo.setContentsMargins(-1, -1, 6, -1)
×
31
        self.uiLayoutLogo.setObjectName("uiLayoutLogo")
×
32
        self.uiLabelLogo = QtWidgets.QLabel(update)
×
33
        self.uiLabelLogo.setMaximumSize(QtCore.QSize(64, 64))
×
34
        self.uiLabelLogo.setText("")
×
35
        self.uiLabelLogo.setPixmap(QtGui.QPixmap(":/images/iblrig_logo"))
×
36
        self.uiLabelLogo.setScaledContents(True)
×
37
        self.uiLabelLogo.setObjectName("uiLabelLogo")
×
38
        self.uiLayoutLogo.addWidget(self.uiLabelLogo)
×
39
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
×
40
        self.uiLayoutLogo.addItem(spacerItem)
×
41
        self.horizontalLayout_2.addLayout(self.uiLayoutLogo)
×
42
        self.uiLayoutRight = QtWidgets.QVBoxLayout()
×
43
        self.uiLayoutRight.setObjectName("uiLayoutRight")
×
44
        self.uiLabelHeader = QtWidgets.QLabel(update)
×
45
        self.uiLabelHeader.setObjectName("uiLabelHeader")
×
46
        self.uiLayoutRight.addWidget(self.uiLabelHeader)
×
47
        self.uiTextBrowserChanges = QtWidgets.QTextBrowser(update)
×
48
        self.uiTextBrowserChanges.setSizeIncrement(QtCore.QSize(0, 0))
×
49
        self.uiTextBrowserChanges.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
×
50
        self.uiTextBrowserChanges.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
×
51
        self.uiTextBrowserChanges.setMarkdown("")
×
52
        self.uiTextBrowserChanges.setTextInteractionFlags(QtCore.Qt.NoTextInteraction)
×
53
        self.uiTextBrowserChanges.setObjectName("uiTextBrowserChanges")
×
54
        self.uiLayoutRight.addWidget(self.uiTextBrowserChanges)
×
55
        self.uiLabelFooter = QtWidgets.QLabel(update)
×
56
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
×
57
        sizePolicy.setHorizontalStretch(0)
×
58
        sizePolicy.setVerticalStretch(0)
×
59
        sizePolicy.setHeightForWidth(self.uiLabelFooter.sizePolicy().hasHeightForWidth())
×
60
        self.uiLabelFooter.setSizePolicy(sizePolicy)
×
61
        self.uiLabelFooter.setAlignment(QtCore.Qt.AlignJustify|QtCore.Qt.AlignVCenter)
×
62
        self.uiLabelFooter.setWordWrap(True)
×
63
        self.uiLabelFooter.setObjectName("uiLabelFooter")
×
64
        self.uiLayoutRight.addWidget(self.uiLabelFooter)
×
65
        spacerItem1 = QtWidgets.QSpacerItem(20, 10, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
×
66
        self.uiLayoutRight.addItem(spacerItem1)
×
67
        self.plainTextEdit = QtWidgets.QPlainTextEdit(update)
×
68
        self.plainTextEdit.setMaximumSize(QtCore.QSize(16777215, 37))
×
69
        self.plainTextEdit.setStyleSheet("background-color: rgb(1, 36, 86);\n"
×
70
"color: rgb(255, 255, 255);")
71
        self.plainTextEdit.setReadOnly(True)
×
72
        self.plainTextEdit.setObjectName("plainTextEdit")
×
73
        self.uiLayoutRight.addWidget(self.plainTextEdit)
×
74
        spacerItem2 = QtWidgets.QSpacerItem(20, 10, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
×
75
        self.uiLayoutRight.addItem(spacerItem2)
×
76
        self.uiLine = QtWidgets.QFrame(update)
×
77
        self.uiLine.setFrameShape(QtWidgets.QFrame.HLine)
×
78
        self.uiLine.setFrameShadow(QtWidgets.QFrame.Sunken)
×
79
        self.uiLine.setObjectName("uiLine")
×
80
        self.uiLayoutRight.addWidget(self.uiLine)
×
81
        self.uiLayoutButton = QtWidgets.QHBoxLayout()
×
82
        self.uiLayoutButton.setObjectName("uiLayoutButton")
×
83
        spacerItem3 = QtWidgets.QSpacerItem(1, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
×
84
        self.uiLayoutButton.addItem(spacerItem3)
×
85
        self.uiPushButtonOK = QtWidgets.QPushButton(update)
×
86
        self.uiPushButtonOK.setObjectName("uiPushButtonOK")
×
87
        self.uiLayoutButton.addWidget(self.uiPushButtonOK)
×
88
        self.uiLayoutRight.addLayout(self.uiLayoutButton)
×
89
        self.horizontalLayout_2.addLayout(self.uiLayoutRight)
×
90
        self.horizontalLayout_2.setStretch(1, 100)
×
91

92
        self.retranslateUi(update)
×
93
        self.uiPushButtonOK.released.connect(update.close) # type: ignore
×
94
        QtCore.QMetaObject.connectSlotsByName(update)
×
95

96
    def retranslateUi(self, update):
2✔
97
        _translate = QtCore.QCoreApplication.translate
×
98
        update.setWindowTitle(_translate("update", "Update Notice"))
×
UNCOV
99
        self.uiLabelHeader.setText(_translate("update", "Update Available!"))
×
UNCOV
100
        self.uiLabelFooter.setText(_translate("update", "To update, close IBL Rig Wizard and run the following commands within the iblrigv8 Python environment:"))
×
101
        self.plainTextEdit.setPlainText(_translate("update", "git pull\n"
×
102
"pip install --upgrade -e ."))
103
        self.uiPushButtonOK.setText(_translate("update", "OK"))
×
104
from iblrig.gui import resources_rc
2✔
105

106

107
if __name__ == "__main__":
2✔
UNCOV
108
    import sys
×
UNCOV
109
    app = QtWidgets.QApplication(sys.argv)
×
UNCOV
110
    update = QtWidgets.QDialog()
×
UNCOV
111
    ui = Ui_update()
×
UNCOV
112
    ui.setupUi(update)
×
UNCOV
113
    update.show()
×
UNCOV
114
    sys.exit(app.exec_())
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc