Added confirm button
This commit is contained in:
@@ -23,6 +23,10 @@ func main () {
|
|||||||
deviceSelectorWindow.SetContent(container.NewVBox(
|
deviceSelectorWindow.SetContent(container.NewVBox(
|
||||||
widget.NewLabel("Please Select Serial Port"),
|
widget.NewLabel("Please Select Serial Port"),
|
||||||
portSelector,
|
portSelector,
|
||||||
|
widget.NewButton("Confirm Select Device", func(){
|
||||||
|
// Will be a package UI function to confirm device is ok
|
||||||
|
fmt.Println("Device Confirmed")
|
||||||
|
}),
|
||||||
))
|
))
|
||||||
deviceSelectorWindow.ShowAndRun()
|
deviceSelectorWindow.ShowAndRun()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user