chore: update code
This commit is contained in:
+18
@@ -5,8 +5,11 @@ import (
|
||||
|
||||
"fyne.io/fyne/v2"
|
||||
"fyne.io/fyne/v2/app"
|
||||
"fyne.io/fyne/v2/container"
|
||||
"fyne.io/fyne/v2/theme"
|
||||
"fyne.io/fyne/v2/widget"
|
||||
|
||||
draw "patchworks/src/modules/draw"
|
||||
setup "patchworks/src/modules/setup"
|
||||
|
||||
_ "embed"
|
||||
@@ -30,5 +33,20 @@ func main() {
|
||||
w := app.NewWindow("PatchWorks")
|
||||
w.Resize(windowSize)
|
||||
|
||||
userEntry := widget.NewEntry()
|
||||
passEntry := widget.NewPasswordEntry()
|
||||
targEntry := widget.NewEntry()
|
||||
var book string
|
||||
inputContainer := draw.MakeInputContainer(userEntry, passEntry, targEntry, &book, w)
|
||||
|
||||
content := container.NewBorder(
|
||||
inputContainer, // top
|
||||
nil, // bottom
|
||||
nil, // left
|
||||
nil, // right
|
||||
nil, // center
|
||||
)
|
||||
|
||||
w.SetContent(content)
|
||||
w.ShowAndRun()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user