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
0 answers

How to read a file with offset in fyne?

I have a large file with data. I can't store all the data in memory. How can I can read it with offset? The reader that fyne's storage.Reader function spits out doesn't have the Seek method.
jeribeb
  • 77
  • 7
2
votes
1 answer

Is there a way to put an event handler on menu element?

I don't think I need these menu subitems. Can I somehow handle clicking on the menu element itself? Something like this: menu := fyne.NewMenu("Menu Element") menu.Action = func() { ... }
jeribeb
  • 77
  • 7
2
votes
1 answer

Button with colored background

I am using fyne. I am working on a game (with buttons obviously). I would like to know if there is a way to change button's background? I know there is button with image instead of text, but I would only like to change background color of button.
TemplarA
  • 23
  • 5
2
votes
1 answer

ellipsis expansion fyne NewVBox

I'm trying to create a Fyne vertical box with a series of buttons but can't figure out the basic mechanism. I think this is a Go question, not a Fyne question, something I don't understand about go. Here is a minimal program to show what I…
ThisEndUp
  • 41
  • 1
  • 4
2
votes
1 answer

Error during building goLang program using Fyne GUI

"package command-line-arguments is not a main package" This error showing when trying to build my go project using fyne gui
2
votes
1 answer

Set custom width for widgets

This is my first attempt at building an application that does not use web technologies like CSS and JS. So I guess I don't have much idea about how Layouts, widgets fit together. I have been trying to build a simple form but the result is not as…
Sajan
  • 1,893
  • 2
  • 19
  • 39
2
votes
1 answer

How to resize an entry box in fyne

Needing your help to resize a widget of fine on my app I have the following: middleLines := container.NewHBox(app.ListLines, linesDetails) middleLines.Resize(fyne.NewSize(1000, 10000)) containerLines :=…
Ginobvhc
  • 59
  • 1
  • 6
2
votes
1 answer

Dynamically add an item to a List widget

I'm using GUI framework called Fyne for Go. How can I dynamically add an item to an array that List widget uses? The code: var componentsList = []string{"test1: test1"} func main() { app := app.New() window := app.NewWindow("Delta…
2
votes
1 answer

Make Fyne popup menu appear at mouse position

I'm stuck at getting the position of the mouse. I want to show the Fyne popup menu at the position of the mouse but can't figure it out. Here's how I use the popup: menuItem1 := fyne.NewMenuItem("A", nil) menuItem2 := fyne.NewMenuItem("B",…
Nexonus
  • 706
  • 6
  • 26
2
votes
1 answer

How to resize window to dialog size in Fyne

I am using the Fyne package for Go. All I want to do is display a dialog, and have the window automatically resize to the maximum size of the dialog. I've gone over the documentation and looked at examples but I can't find it anywhere! The window is…
justdan96
  • 33
  • 5
2
votes
2 answers

How to set default theme from code using the fyne GUI framework?

I can run my Fyne application with FYNE_THEME=light to make it use a light background and running without this var it will default to dark. Is there a way to reverse this behaviour? Having the application start with the light theme by default?
Andreas Gohr
  • 4,617
  • 5
  • 28
  • 45
2
votes
1 answer

How to make a http request for a native fyne app on android

I am unable to make a http request from a Go fyne application running on android, below is a simple example to show the issue package main import ( "io/ioutil" "net/http" "log" "fyne.io/fyne" "fyne.io/fyne/app" …
Nigel Savage
  • 991
  • 13
  • 26
2
votes
2 answers

How make expanded and stretched layout box with Fyne

I want expanded and stretched box for layouting widgets, so that my application looks like this: I.e. top and middle box both lengthy in both direction. I tried use this code with Box(because I didn't found any "free" layouting in the…
RimeBeliskner
  • 352
  • 3
  • 14
2
votes
1 answer

Failing at extending fyne's widgets

(Many new details here.) I am trying (very hard) to extend the functionality of a handful of Fyne's widgets. Basically I need to implement or "override" right click on things like Select, Button, Edit and so on. I need minor changes to some other…
Scott M
  • 684
  • 7
  • 14
2
votes
1 answer

How to get widgets to admit to what events they can really handle

I’m struggling with Go and Fyne, being new to both and too used to C++, Python and other OO languages. I’m trying to imbue a number of different kinds of Fyne widgets with certain common behavior, and I’m lost. As an example, I need to create…
Scott M
  • 684
  • 7
  • 14
1 2
3
9 10