summaryrefslogtreecommitdiff
path: root/cmd/rescribe/gui.go
diff options
context:
space:
mode:
authorNick White <git@njw.name>2022-01-10 17:13:15 +0000
committerNick White <git@njw.name>2022-01-10 17:13:15 +0000
commitdb68150149ae3a876962195b50721c17a19c9b63 (patch)
tree1a8cc38f45bf700509bf592953372f919d8fb2ae /cmd/rescribe/gui.go
parent1ec2f5f3a8bde6586e3aa5551ee14b265c34e493 (diff)
rescribe: Increase size of file & folder picker dialog windows
Diffstat (limited to 'cmd/rescribe/gui.go')
-rw-r--r--cmd/rescribe/gui.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd/rescribe/gui.go b/cmd/rescribe/gui.go
index 8b32051..dd39460 100644
--- a/cmd/rescribe/gui.go
+++ b/cmd/rescribe/gui.go
@@ -139,6 +139,7 @@ func trainingSelectOnChange(sel *widget.Select, parent fyne.Window) func(string)
sel.SetSelectedIndex(0)
}, parent)
d.SetFilter(storage.NewExtensionFileFilter([]string{".traineddata"}))
+ d.Resize(fyne.NewSize(740, 600))
d.Show()
}
}
@@ -200,7 +201,7 @@ func startGui(log log.Logger, cmd string, training string, tessdir string) error
dirIcon := widget.NewIcon(theme.FolderIcon())
folderBtn := widget.NewButtonWithIcon("Choose folder", theme.FolderOpenIcon(), func() {
- dialog.ShowFolderOpen(func(uri fyne.ListableURI, err error) {
+ d := dialog.NewFolderOpen(func(uri fyne.ListableURI, err error) {
if err == nil && uri != nil {
dir.SetText(uri.Path())
dirIcon.SetResource(theme.FolderIcon())
@@ -208,6 +209,8 @@ func startGui(log log.Logger, cmd string, training string, tessdir string) error
gobtn.Enable()
}
}, myWindow)
+ d.Resize(fyne.NewSize(740, 600))
+ d.Show()
})
pdfBtn := widget.NewButtonWithIcon("Choose PDF", theme.DocumentIcon(), func() {
@@ -221,6 +224,7 @@ func startGui(log log.Logger, cmd string, training string, tessdir string) error
}
}, myWindow)
d.SetFilter(storage.NewExtensionFileFilter([]string{".pdf"}))
+ d.Resize(fyne.NewSize(740, 600))
d.Show()
})