Questions tagged [fyne]

Questions related to Fyne UI of the Go language. Also add [go] tag to your question.

Fyne is a UI toolkit and app API written in Go. It uses OpenGL (through the go-gl and go-glfw projects) to provide cross platform graphics.

138 questions
2
votes
1 answer

How to set letter spacing for text in fyne-io/fyne?

I used a custom font, and the letter spacing looks too crowded. I am trying to change the letter spacing, but I cannot find the configuration. So I want to modify the source code, but I don't know where the letter spacing of text is set?
2
votes
2 answers

Custom Fyne Adaptive Grid Layout

I'm modifying container.NewAdaptiveGrid() of fyne library in a way that we render widgets's width according the ratio slice we pass. As of now, container.NewAdaptiveGrid() renders widgets of equal width in a row. basically (total row size / now of…
rockstar
  • 67
  • 7
2
votes
2 answers

Create a verbose console inside Golang app using Fyne

Comming from Python with PyQt gui, I was used to add kind of console in my programm. The purpose was to indicate to the user information on the processes in progress, on the execution errors encountered, etc. In Python/PyQt, I was using QLineEdit to…
Ju Ctn
  • 33
  • 4
2
votes
2 answers

How to make the text scrollable with canvas.NewText() with fyne Go

I am new to programming and i want to develop a application but i need show to users very large text in my application. I am not sure widget.NewRichTextWithText() is for this purpose. This code working as i expected. package main import ( …
user18572278
2
votes
2 answers

Go Fyne project can't cross compile from Linux to Windows

I made a Go fyne project, which works fine with go run ., and builds to Linux as expected with go build .. However, when I try cross-compiling to windows using env GOOS=windows GOARCH=arm64 go build . it prints this error: go: downloading…
Mohamed Yasser
  • 641
  • 7
  • 17
2
votes
2 answers

Adding opengl support on vm(vmware,azure) to run Go Fyne app

I am trying to run a Fyne app on a VM. I have attempted it on VirtualBox and Azure. After running the app, I get the following error: Cause:APIUnavailable: WGL: The driver does not appear to support OpenGL At:…
Sanjay TM
  • 369
  • 2
  • 17
2
votes
0 answers

GO problem with positioning in fyne.io - Move method doesn't work

I am making a simple application with fyne, but I have a problem with text placement. As you can see from the image, I managed to position the form components with an edge from the window, but I can't do the same with the underlying components (the…
Saverio Randazzo
  • 217
  • 1
  • 7
  • 19
2
votes
1 answer

How to call function on lost focus in Fyne

I just started learning Go coming from JS/TS. I want to validate an entry in fyne on loss of focus. I got it to work like this : type dateEntry struct { widget.Entry } func NewDateEntry() *dateEntry { entry := &dateEntry{} …
Alexis
  • 401
  • 1
  • 8
  • 20
2
votes
0 answers

Go Fyne File Picker Dialog?

Is there a way to use the native file picker dialog when integrating with Fyne? Currently, I am using the library implemented file picker, I would like to use the native look with the file path/address bar above the picker showFilePicker := func()…
riropy
  • 43
  • 4
2
votes
2 answers

Go Fyne Disable HSplit Resize?

How do I disable or prevent the split pane to be resizable? hSplit := container.NewHSplit( hello, widget.NewButton("Hi!", func() { hello.SetText("Welcome :)") }), ) I am trying to have a label followed by the NewList…
riropy
  • 43
  • 4
2
votes
2 answers

Button action for a specific list item in Fyne

I have a list in the GUI which has a simple string slice as its data source. And for every list item I create a button that should do something for that specific list item. Here is some example code: var data = []string{"folder1",…
Nexonus
  • 706
  • 6
  • 26
2
votes
1 answer

How to use List widget inside scroll container in fyne?

Scroll collapses everytime i use list widget inside scroll container, if i use label widget then scroll container is full width and full height but when i use list widget it just collapses. Not Working (Scroll collapses) func ShowListDialog(win…
code0x00
  • 543
  • 3
  • 18
2
votes
1 answer

How to avoid circular dependencies in a GUI application with fyne?

I want to add a GUI to a command line application that I have written in Go but I'm running into problems with fyne and circular dependencies. Consider this simple example to illustrate the problem I am facing: Assume that a button triggers a…
Christian
  • 1,589
  • 1
  • 18
  • 36
2
votes
3 answers

Is it possible to package a Fyne app and cross-compile said app in one step?

Fyne (https://developer.fyne.io/started/packaging) proposes a solution for packaging apps: fyne package -os darwin -icon myapp.png And another method for cross-compiling: https://developer.fyne.io/started/cross-compiling I was wondering if there is…
Serge Hulne
  • 594
  • 5
  • 17
2
votes
2 answers

How to display text that can be copied on a fyne GUI?

On my fyne GUI, I want to display text that can be copied by the user. So far, I'm using a (multi-line) widget.Entry, see example below. Although that works, it seems inappropriate since "entry" implies user-input - which is not the case here. If I…
FObersteiner
  • 22,500
  • 8
  • 42
  • 72
1
2
3
9 10