Skip to content

Commit

Permalink
use RunMainWindow
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoreilly committed Mar 9, 2024
1 parent 461ba3e commit ec68126
Show file tree
Hide file tree
Showing 26 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion chans/ak_plot/ak_plot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion chans/gabab_plot/gabab_plot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion chans/kir_plot/kir_plot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion chans/mahp_plot/mahp_plot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion chans/nmda_plot/nmda_plot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion chans/sahp_plot/sahp_plot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion chans/skca_plot/skca_plot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion chans/vgcc_plot/vgcc_plot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/boa/boa.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/deep_fsa/deep_fsa.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion examples/deep_move/deep_move.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion examples/deep_music/deep_music.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion examples/dls/dls.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/hip/hip.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion examples/inhib/inhib.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion examples/mpi/ra25.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion examples/neuron/neuron.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion examples/objrec/objrec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion examples/pcore_ds/pcore_ds.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion examples/pcore_vs/pcore_vs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion examples/pvlv/effort_plot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/pvlv/pvlv.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion examples/ra25/ra25.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion examples/ra25x/ra25x.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion examples/rl/rl.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion kinase/plot/synca_plot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ec68126

Please sign in to comment.