Example #1
0
 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 = {}
Example #2
0
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()
Example #3
0
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)
Example #4
0
def gui(qtbot):
    G.gui = gui = G.GUI(startApplication=False, flags=[])
    return gui
Example #5
0
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)