Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions src/osdag/gui/ui_OsdagMainPage.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
class Ui_MainWindow(QMainWindow):
def __init__(self):
super().__init__()
#change 4
self.plugin_window = None
#end of change 4

def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
Expand Down Expand Up @@ -74,11 +72,9 @@ def setupUi(self, MainWindow):
self.comboBox_help.addItem("")
self.comboBox_help.addItem("")
self.comboBox_help.addItem("")
#change 1
self.comboBox_help.addItem("")
self.comboBox_help.addItem("")
self.comboBox_help.addItem("")
#end of change 1
self.gridLayout.addWidget(self.comboBox_help, 1, 0)
layout = QtWidgets.QHBoxLayout()
self.lbl = QtWidgets.QLabel(self.centralwidget)
Expand Down Expand Up @@ -155,12 +151,11 @@ def setupUi(self, MainWindow):
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)

self.retranslateUi(MainWindow)
self.comboBox_help.setCurrentIndex(0)
self.myStackedWidget.setCurrentIndex(0)

# Change 2

self.comboBox_help.currentIndexChanged.connect(self.on_comboBox_help_changed)

QtCore.QMetaObject.connectSlotsByName(MainWindow)
Expand All @@ -179,7 +174,7 @@ def on_comboBox_help_changed(self, index):
install_dialog = InstallPluginsDialog()
install_dialog.exec_()
self.comboBox_help.setCurrentIndex(0)
#end of change 2


def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
Expand All @@ -190,9 +185,7 @@ def retranslateUi(self, MainWindow):
self.comboBox_help.setItemText(3, _translate("MainWindow", "Ask Us a Question"))
self.comboBox_help.setItemText(4, _translate("MainWindow", "Check for Update"))
self.comboBox_help.setItemText(5, _translate("MainWindow", "About Osdag"))
#change 3
self.comboBox_help.setItemText(6, _translate("MainWindow", "Plugins"))
#end of change 3
self.comboBox_help.setItemText(7, _translate("MainWindow", "Install Plugins"))
from . import osdagMainPageIcons_rc

Expand Down