Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New template #837

Draft
wants to merge 26 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
900e659
Added net_list tab
ismirlia May 26, 2022
c4c6237
Merge branch 'main' into netlist
ismirlia May 31, 2022
3264895
Fixed typos in elements_window.py
ismirlia May 31, 2022
3ba0b70
Merge branch 'netlist' of github.com:Qiskit/qiskit-metal into netlist
ismirlia May 31, 2022
73621ad
fixed unit tests for net_list
ismirlia May 31, 2022
b86f60d
fixed linting issues
ismirlia May 31, 2022
b4952a5
fixed test_designs
ismirlia May 31, 2022
45273e0
Changed extra column to be a virtual column
ismirlia Jun 3, 2022
7e6ff0b
Undid changes to tests and, undid unneccesary changes done automatica…
ismirlia Jun 3, 2022
156c028
Added table sorting to the qGeometry and net list tables
ismirlia Jun 22, 2022
bd397db
Deleted redundant property
ismirlia Jun 22, 2022
928412d
Merge branch 'main' into netlist
ismirlia Jun 24, 2022
0bf5f28
Fixed missing net_list tab icon
ismirlia Jun 28, 2022
f5564e6
Merge branch 'netlist' of github.com:Qiskit/qiskit-metal into netlist
ismirlia Jun 28, 2022
7759c5c
Fixed some int members of tables sorting as strings
ismirlia Jun 28, 2022
a3de20a
Updated Element type to QGeometry type
ismirlia Jun 30, 2022
ff690b4
Merge branch 'main' into netlist
ismirlia Jun 30, 2022
5393401
Merge branch 'main' of github.com:Qiskit/qiskit-metal into new_template
ismirlia Aug 5, 2022
42c2f02
modern ui - in progress
ismirlia Aug 8, 2022
c48c3fb
Merge branch 'main' into new_template
priti-ashvin-shah-ibm Aug 12, 2022
1194aed
Merge branch 'main' into new_template
priti-ashvin-shah-ibm Dec 22, 2022
3c57013
Merge branch 'main' into new_template
priti-ashvin-shah-ibm Dec 27, 2022
824f8ec
Merge branch 'main' into new_template
priti-ashvin-shah-ibm Jan 31, 2023
e629095
Merge branch 'main' into new_template
priti-ashvin-shah-ibm Feb 2, 2023
c33587d
Merge branch 'main' into new_template
priti-ashvin-shah-ibm Feb 15, 2023
7939f76
Merge branch 'main' into new_template
priti-ashvin-shah-ibm Mar 7, 2023
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
25 changes: 25 additions & 0 deletions LaunchGui.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import sys
import os
import qiskit_metal as metal
from qiskit_metal import designs, draw
from qiskit_metal import MetalGUI, Dict, open_docs
from PySide2.QtWidgets import QApplication, QWidget

os.environ['QT_MAC_WANTS_LAYER'] = '1'

def main():
print("Launch Python GUI")

qApp = QApplication(sys.argv)
design = designs.DesignPlanar()
gui = MetalGUI(design)

# Can be also launched without a
# design instance but many features
# are disabled at that point
# gui = MetalGUI()

qApp.exec_()

if __name__ == "__main__":
main()
Binary file added qiskit_metal/_gui/_imgs/modern_ui_icons/Chip.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added qiskit_metal/_gui/_imgs/modern_ui_icons/Help.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added qiskit_metal/_gui/_imgs/modern_ui_icons/Location.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added qiskit_metal/_gui/_imgs/modern_ui_icons/Plug.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion qiskit_metal/_gui/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
from .net_list_window import NetListWindow
from .main_window_base import (QMainWindowBaseHandler, QMainWindowExtensionBase,
kick_start_qApp)
from .main_window_ui import Ui_MainWindow
from .main_window_modern_ui import Ui_MainWindow
from .renderer_gds_gui import RendererGDSWidget
from .renderer_hfss_gui import RendererHFSSWidget
from .renderer_q3d_gui import RendererQ3DWidget
Expand Down
11 changes: 10 additions & 1 deletion qiskit_metal/_gui/main_window_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from .. import Dict, config
from ..toolbox_python._logging import setup_logger
from . import __version__
from .main_window_ui import Ui_MainWindow
from .main_window_modern_ui import Ui_MainWindow
from .utility._handle_qt_messages import slot_catch_error
from .widgets.log_widget.log_metal import LogHandler_for_QTextLog

Expand Down Expand Up @@ -230,6 +230,11 @@ def load_stylesheet_dark(self, _=None):
"""Used to call from action."""
self.handler.load_stylesheet('qdarkstyle')

@slot_catch_error()
def load_stylesheet_metal_modern(self, _=None):
"""Used to call from action."""
self.handler.load_stylesheet('metal_modern')

@slot_catch_error()
def load_stylesheet_open(self, _=None):
"""Used to call from action."""
Expand Down Expand Up @@ -505,6 +510,10 @@ def load_stylesheet(self, path=None):
# print(f'path_full = {path_full}')
self._load_stylesheet_from_file(path_full)

elif path == 'metal_modern':
path_full = self.path_stylesheets / 'metal_modern' / 'style.qss'
self._load_stylesheet_from_file(path_full)

else:
self._load_stylesheet_from_file(path)

Expand Down
1,130 changes: 1,130 additions & 0 deletions qiskit_metal/_gui/main_window_modern_ui.py

Large diffs are not rendered by default.

Loading