From a027403aa186ed9b2b0eb89941617dd766499719 Mon Sep 17 00:00:00 2001 From: Chanandellar Bong <75779966+AbdullahKazi500@users.noreply.github.com> Date: Tue, 11 Jun 2024 19:21:06 +0530 Subject: [PATCH] Update documentation.lym --- .../scripts/macros/0system/documentation.lym | 47 ++++++++----------- 1 file changed, 19 insertions(+), 28 deletions(-) diff --git a/klayout_package/python/scripts/macros/0system/documentation.lym b/klayout_package/python/scripts/macros/0system/documentation.lym index e76bcecaa..c3affc267 100644 --- a/klayout_package/python/scripts/macros/0system/documentation.lym +++ b/klayout_package/python/scripts/macros/0system/documentation.lym @@ -1,20 +1,19 @@ - Tutorial - 1.0 - pymacros - - - - false - false - - true - kqcircuits_menu.end - python - - -# This code is part of KQCircuits + Online documentation + + pymacros + + + + false + false + + true + kqcircuits_menu.end + python + + # This code is part of KQCircuits # Copyright (C) 2021 IQM Finland Oy # # This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public @@ -32,18 +31,10 @@ # Please see our contribution agreements for individuals (meetiqm.com/iqm-individual-contributor-license-agreement) # and organizations (meetiqm.com/iqm-organization-contributor-license-agreement). -import pya +"""Open the KQCircuits online documentation in the default web browser. +""" -def open_tutorial(): - view = pya.Application.instance().main_window().create_view() - layout = view.load_layout("path/to/tutorial.oas", 0) - view.load_layer_props("path/to/tutorial.lyp") - top_cell = layout.top_cell() - if top_cell: - view.select_cell(top_cell.cell_index(), 0) - view.add_missing_layers() - view.zoom_fit() - -open_tutorial() - +import webbrowser +webbrowser.open('https://iqm-finland.github.io/KQCircuits/index.html') +