diff options
author | rahulp13 | 2022-09-17 19:12:48 +0530 |
---|---|---|
committer | rahulp13 | 2022-09-17 19:12:48 +0530 |
commit | 1b8addf7a0daa681014d2cef4371622b431b84e3 (patch) | |
tree | daf366609408421934e87d53c1bcf8fc130a5a03 /src/frontEnd/Application.py | |
parent | 37b9194b0d63f9b18e97892e63719c35dbac8dd7 (diff) | |
download | eSim-1b8addf7a0daa681014d2cef4371622b431b84e3.tar.gz eSim-1b8addf7a0daa681014d2cef4371622b431b84e3.tar.bz2 eSim-1b8addf7a0daa681014d2cef4371622b431b84e3.zip |
Moved gen-soc button to menu bar
Diffstat (limited to 'src/frontEnd/Application.py')
-rw-r--r-- | src/frontEnd/Application.py | 26 |
1 files changed, 26 insertions, 0 deletions
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( + '<b>SPICE to Verilog Conversion</b><br>' + \ + '<br>The feature is under development.' + \ + '<br>It will be released soon.' + \ + '<br><br>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 = '<b>SPICE to Verilog Conversion</b><br>' + \ + '<br>The feature is under development.' + \ + '<br>It will be released soon.' + \ + '<br><br>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). |