From 1b8addf7a0daa681014d2cef4371622b431b84e3 Mon Sep 17 00:00:00 2001 From: rahulp13 Date: Sat, 17 Sep 2022 19:12:48 +0530 Subject: Moved gen-soc button to menu bar --- src/frontEnd/Application.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'src/frontEnd/Application.py') diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py index d3ef020f..1a887eaa 100644 --- a/src/frontEnd/Application.py +++ b/src/frontEnd/Application.py @@ -160,6 +160,21 @@ class Application(QtWidgets.QMainWindow): self.topToolbar.addAction(self.switchmode) self.topToolbar.addAction(self.helpfile) + self.soc = QtWidgets.QToolButton(self) + self.soc.setText('Generate SoC') + self.soc.setToolTip( + 'SPICE to Verilog Conversion
' + \ + '
The feature is under development.' + \ + '
It will be released soon.' + \ + '

Thank you for your patience!!!' + ) + self.soc.setStyleSheet(" \ + QWidget { border-radius: 15px; border: 1px \ + solid gray; padding: 10px; margin-left: 20px; } \ + ") + self.soc.clicked.connect(self.showSoCRelease) + self.topToolbar.addWidget(self.soc) + # This part is setting fossee logo to the right # corner in the application window. self.spacer = QtWidgets.QWidget() @@ -247,6 +262,17 @@ class Application(QtWidgets.QMainWindow): self.lefttoolbar.setOrientation(QtCore.Qt.Vertical) self.lefttoolbar.setIconSize(QSize(40, 40)) + + def showSoCRelease(self): + msg = 'SPICE to Verilog Conversion
' + \ + '
The feature is under development.' + \ + '
It will be released soon.' + \ + '

Thank you for your patience!!!' + QtWidgets.QMessageBox.information( + self, 'SoC Generation', msg, QtWidgets.QMessageBox.Ok + ) + + def closeEvent(self, event): ''' This function closes the ongoing program (process). -- cgit