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