diff --git a/chans/ak_plot/ak_plot.go b/chans/ak_plot/ak_plot.go index 8d3d1b82e..46126a56d 100644 --- a/chans/ak_plot/ak_plot.go +++ b/chans/ak_plot/ak_plot.go @@ -25,7 +25,7 @@ func main() { sim.Config() sim.VmRun() b := sim.ConfigGUI() - b.NewWindow().Run().Wait() + b.RunMainWindow() } // LogPrec is precision for saving float values in logs diff --git a/chans/gabab_plot/gabab_plot.go b/chans/gabab_plot/gabab_plot.go index 677c775c1..51a119f24 100644 --- a/chans/gabab_plot/gabab_plot.go +++ b/chans/gabab_plot/gabab_plot.go @@ -28,7 +28,7 @@ func main() { sim.VGRun() sim.SGRun() b := sim.ConfigGUI() - b.NewWindow().Run().Wait() + b.RunMainWindow() } // LogPrec is precision for saving float values in logs diff --git a/chans/kir_plot/kir_plot.go b/chans/kir_plot/kir_plot.go index 020305672..5787b0b13 100644 --- a/chans/kir_plot/kir_plot.go +++ b/chans/kir_plot/kir_plot.go @@ -25,7 +25,7 @@ func main() { sim.Config() sim.VmRun() b := sim.ConfigGUI() - b.NewWindow().Run().Wait() + b.RunMainWindow() } // LogPrec is precision for saving float values in logs diff --git a/chans/mahp_plot/mahp_plot.go b/chans/mahp_plot/mahp_plot.go index 014c6dd3e..beb692b43 100644 --- a/chans/mahp_plot/mahp_plot.go +++ b/chans/mahp_plot/mahp_plot.go @@ -25,7 +25,7 @@ func main() { sim.Config() sim.VmRun() b := sim.ConfigGUI() - b.NewWindow().Run().Wait() + b.RunMainWindow() } // LogPrec is precision for saving float values in logs diff --git a/chans/nmda_plot/nmda_plot.go b/chans/nmda_plot/nmda_plot.go index bf2b5c29a..e6b610cfd 100644 --- a/chans/nmda_plot/nmda_plot.go +++ b/chans/nmda_plot/nmda_plot.go @@ -27,7 +27,7 @@ func main() { sim.Config() sim.Run() b := sim.ConfigGUI() - b.NewWindow().Run().Wait() + b.RunMainWindow() } // LogPrec is precision for saving float values in logs diff --git a/chans/sahp_plot/sahp_plot.go b/chans/sahp_plot/sahp_plot.go index 9554a093e..7082b20d3 100644 --- a/chans/sahp_plot/sahp_plot.go +++ b/chans/sahp_plot/sahp_plot.go @@ -25,7 +25,7 @@ func main() { sim.Config() sim.CaRun() b := sim.ConfigGUI() - b.NewWindow().Run().Wait() + b.RunMainWindow() } // LogPrec is precision for saving float values in logs diff --git a/chans/skca_plot/skca_plot.go b/chans/skca_plot/skca_plot.go index 1980403a2..86369a0bd 100644 --- a/chans/skca_plot/skca_plot.go +++ b/chans/skca_plot/skca_plot.go @@ -26,7 +26,7 @@ func main() { sim.Config() sim.CamRun() b := sim.ConfigGUI() - b.NewWindow().Run().Wait() + b.RunMainWindow() } // LogPrec is precision for saving float values in logs diff --git a/chans/vgcc_plot/vgcc_plot.go b/chans/vgcc_plot/vgcc_plot.go index aad5b3da2..063dee6e4 100644 --- a/chans/vgcc_plot/vgcc_plot.go +++ b/chans/vgcc_plot/vgcc_plot.go @@ -25,7 +25,7 @@ func main() { sim.Config() sim.VmRun() b := sim.ConfigGUI() - b.NewWindow().Run().Wait() + b.RunMainWindow() } // LogPrec is precision for saving float values in logs diff --git a/examples/boa/boa.go b/examples/boa/boa.go index df10e1da2..b9265cec1 100644 --- a/examples/boa/boa.go +++ b/examples/boa/boa.go @@ -1282,7 +1282,7 @@ func (ss *Sim) RunGUI() { ss.EnvGUI = &armaze.GUI{} eb := ss.EnvGUI.ConfigWorldGUI(ev) eb.NewWindow().Run() - ss.GUI.Body.NewWindow().Run().Wait() + ss.GUI.Body.RunMainWindow() } // RecordTestData returns key testing data from the network diff --git a/examples/deep_fsa/deep_fsa.go b/examples/deep_fsa/deep_fsa.go index ab132cfd5..0031eedde 100644 --- a/examples/deep_fsa/deep_fsa.go +++ b/examples/deep_fsa/deep_fsa.go @@ -679,7 +679,7 @@ func (ss *Sim) ConfigGUI() { func (ss *Sim) RunGUI() { ss.Init() ss.ConfigGUI() - ss.GUI.Body.NewWindow().Run().Wait() + ss.GUI.Body.RunMainWindow() } func (ss *Sim) RunNoGUI() { diff --git a/examples/deep_move/deep_move.go b/examples/deep_move/deep_move.go index 5aae6c68a..25f9554a8 100644 --- a/examples/deep_move/deep_move.go +++ b/examples/deep_move/deep_move.go @@ -682,7 +682,7 @@ func (ss *Sim) ConfigGUI() { func (ss *Sim) RunGUI() { ss.Init() ss.ConfigGUI() - ss.GUI.Body.NewWindow().Run().Wait() + ss.GUI.Body.RunMainWindow() } func (ss *Sim) RunNoGUI() { diff --git a/examples/deep_music/deep_music.go b/examples/deep_music/deep_music.go index aef326b08..60953bc07 100644 --- a/examples/deep_music/deep_music.go +++ b/examples/deep_music/deep_music.go @@ -675,7 +675,7 @@ func (ss *Sim) ConfigGUI() { func (ss *Sim) RunGUI() { ss.Init() ss.ConfigGUI() - ss.GUI.Body.NewWindow().Run().Wait() + ss.GUI.Body.RunMainWindow() } func (ss *Sim) RunNoGUI() { diff --git a/examples/dls/dls.go b/examples/dls/dls.go index 97fb86fe7..d31b2be56 100644 --- a/examples/dls/dls.go +++ b/examples/dls/dls.go @@ -1047,7 +1047,7 @@ func (ss *Sim) RunGUI() { ss.EnvGUI = &armaze.GUI{} eb := ss.EnvGUI.ConfigWorldGUI(ev) eb.NewWindow().Run() - ss.GUI.Body.NewWindow().Run().Wait() + ss.GUI.Body.RunMainWindow() } // RecordTestData returns key testing data from the network diff --git a/examples/hip/hip.go b/examples/hip/hip.go index 6c6f029cf..c72fdf846 100644 --- a/examples/hip/hip.go +++ b/examples/hip/hip.go @@ -857,7 +857,7 @@ func (ss *Sim) ConfigGUI() { func (ss *Sim) RunGUI() { ss.Init() ss.ConfigGUI() - ss.GUI.Body.NewWindow().Run().Wait() + ss.GUI.Body.RunMainWindow() } func (ss *Sim) RunNoGUI() { diff --git a/examples/inhib/inhib.go b/examples/inhib/inhib.go index 91e40ec8c..dad9e5747 100644 --- a/examples/inhib/inhib.go +++ b/examples/inhib/inhib.go @@ -577,7 +577,7 @@ func (ss *Sim) ConfigGUI() { func (ss *Sim) RunGUI() { ss.Init() ss.ConfigGUI() - ss.GUI.Body.NewWindow().Run().Wait() + ss.GUI.Body.RunMainWindow() } func (ss *Sim) RunNoGUI() { diff --git a/examples/mpi/ra25.go b/examples/mpi/ra25.go index bd3a352b2..14d766074 100644 --- a/examples/mpi/ra25.go +++ b/examples/mpi/ra25.go @@ -770,7 +770,7 @@ func (ss *Sim) ConfigGUI() { func (ss *Sim) RunGUI() { ss.Init() ss.ConfigGUI() - ss.GUI.Body.NewWindow().Run().Wait() + ss.GUI.Body.RunMainWindow() } func (ss *Sim) RunNoGUI() { diff --git a/examples/neuron/neuron.go b/examples/neuron/neuron.go index a8ed35fd0..3a35cb302 100644 --- a/examples/neuron/neuron.go +++ b/examples/neuron/neuron.go @@ -469,7 +469,7 @@ func (ss *Sim) ConfigGUI() { func (ss *Sim) RunGUI() { ss.Init() ss.ConfigGUI() - ss.GUI.Body.NewWindow().Run().Wait() + ss.GUI.Body.RunMainWindow() } func (ss *Sim) RunNoGUI() { diff --git a/examples/objrec/objrec.go b/examples/objrec/objrec.go index 72e36cad5..6fd12d868 100644 --- a/examples/objrec/objrec.go +++ b/examples/objrec/objrec.go @@ -754,7 +754,7 @@ func (ss *Sim) ConfigGUI() { func (ss *Sim) RunGUI() { ss.Init() ss.ConfigGUI() - ss.GUI.Body.NewWindow().Run().Wait() + ss.GUI.Body.RunMainWindow() } func (ss *Sim) RunNoGUI() { diff --git a/examples/pcore_ds/pcore_ds.go b/examples/pcore_ds/pcore_ds.go index f9c0754ab..ad7c5dbd4 100644 --- a/examples/pcore_ds/pcore_ds.go +++ b/examples/pcore_ds/pcore_ds.go @@ -913,7 +913,7 @@ func (ss *Sim) ConfigGUI() { func (ss *Sim) RunGUI() { ss.Init() ss.ConfigGUI() - ss.GUI.Body.NewWindow().Run().Wait() + ss.GUI.Body.RunMainWindow() } func (ss *Sim) RunNoGUI() { diff --git a/examples/pcore_vs/pcore_vs.go b/examples/pcore_vs/pcore_vs.go index 923502bfe..04d2b6256 100644 --- a/examples/pcore_vs/pcore_vs.go +++ b/examples/pcore_vs/pcore_vs.go @@ -741,7 +741,7 @@ func (ss *Sim) ConfigGUI() { func (ss *Sim) RunGUI() { ss.Init() ss.ConfigGUI() - ss.GUI.Body.NewWindow().Run().Wait() + ss.GUI.Body.RunMainWindow() } func (ss *Sim) RunNoGUI() { diff --git a/examples/pvlv/effort_plot.go b/examples/pvlv/effort_plot.go index e4e84ccc1..3ede855d9 100644 --- a/examples/pvlv/effort_plot.go +++ b/examples/pvlv/effort_plot.go @@ -26,7 +26,7 @@ func DriveEffortGUI() { ep := &DrEffPlot{} ep.Config() b := ep.ConfigGUI() - b.NewWindow().Run().Wait() + b.RunMainWindow() } // LogPrec is precision for saving float values in logs diff --git a/examples/pvlv/pvlv.go b/examples/pvlv/pvlv.go index 6de3dc60e..9d20a9c06 100644 --- a/examples/pvlv/pvlv.go +++ b/examples/pvlv/pvlv.go @@ -847,7 +847,7 @@ func (ss *Sim) ConfigGUI() { func (ss *Sim) RunGUI() { ss.Init() ss.ConfigGUI() - ss.GUI.Body.NewWindow().Run().Wait() + ss.GUI.Body.RunMainWindow() } func (ss *Sim) RunNoGUI() { diff --git a/examples/ra25/ra25.go b/examples/ra25/ra25.go index 3269d9e1e..ea137c4e0 100644 --- a/examples/ra25/ra25.go +++ b/examples/ra25/ra25.go @@ -723,7 +723,7 @@ func (ss *Sim) ConfigGUI() { func (ss *Sim) RunGUI() { ss.Init() ss.ConfigGUI() - ss.GUI.Body.NewWindow().Run().Wait() + ss.GUI.Body.RunMainWindow() } func (ss *Sim) RunNoGUI() { diff --git a/examples/ra25x/ra25x.go b/examples/ra25x/ra25x.go index 1d840fafa..1570345df 100644 --- a/examples/ra25x/ra25x.go +++ b/examples/ra25x/ra25x.go @@ -688,7 +688,7 @@ func (ss *Sim) ConfigGUI() { func (ss *Sim) RunGUI() { ss.Init() ss.ConfigGUI() - ss.GUI.Body.NewWindow().Run().Wait() + ss.GUI.Body.RunMainWindow() } func (ss *Sim) RunNoGUI() { diff --git a/examples/rl/rl.go b/examples/rl/rl.go index 0408fd3b9..3217fe44d 100644 --- a/examples/rl/rl.go +++ b/examples/rl/rl.go @@ -460,7 +460,7 @@ func (ss *Sim) ConfigGUI() { func (ss *Sim) RunGUI() { ss.Init() ss.ConfigGUI() - ss.GUI.Body.NewWindow().Run().Wait() + ss.GUI.Body.RunMainWindow() } func (ss *Sim) RunNoGUI() { diff --git a/kinase/plot/synca_plot.go b/kinase/plot/synca_plot.go index 89d886bcd..17ca5cd62 100644 --- a/kinase/plot/synca_plot.go +++ b/kinase/plot/synca_plot.go @@ -27,7 +27,7 @@ func main() { sim.Config() sim.Run() b := sim.ConfigGUI() - b.NewWindow().Run().Wait() + b.RunMainWindow() } // LogPrec is precision for saving float values in logs