def __init__(self, parent): SpyderPluginWidget.__init__(self, parent) self.gui = G.GUI(flags=["--noOutputpipe", "--noConsole"], startApplication=False, createMenu=False) G.gui = self.gui self.setLayout(ArrangeH(self.gui.mainWidget)) self.shellwidgets = {}
def main(): import sys import ngsolve as ngs import ngsgui.gui as G ngs.Draw = Draw ngs.Redraw = Redraw G.gui = G.GUI() G.gui._run()
from IPython import get_ipython ipython = get_ipython() ipython.magic('gui qt5') import time import ngsgui.gui as G import ngsolve as ngs from ngsgui.__main__ import Draw, Redraw ngs.Draw = Draw ngs.Redraw = Redraw G.gui = G.GUI(flags=['--noConsole']) G.gui._run(run_event_loop=False)
def gui(qtbot): G.gui = gui = G.GUI(startApplication=False, flags=[]) return gui
from IPython import get_ipython ipython = get_ipython() ipython.magic('gui qt5') import time import ngsgui.gui as G import ngsolve as ngs from ngsgui.__main__ import Draw, Redraw ngs.Draw = Draw ngs.Redraw = Redraw G.gui = G.GUI(flags=['--noOutputpipe', '--noConsole']) G.gui._run(run_event_loop=False)