oh wow! this really feels like flutter but with go! this really has nice potential rivalling flutter for cross-platform apps! i do wanna ask, is fyne really similar to flutter in a way? also, has there been like a community around the fyne toolkit? like a discord server or a matrix channel or something?
Fyne has a great community across Slack, Discord and GitHub - see the contact info at fyne.io/support/. In many ways Fyne and Flutter are similar but we take an engineering approach to writing code whereas Flutter is more of a design based toolkit. This means that we get maintainable code and good unit testing / TDD at the cost of not having live-reload custom UI debugging.
Thanks! Based on the example in this video, I've use something like this and it works. Is there away to update the text to reflect a dynamic state like the clock widget example? I've tried different ideas and none seemed to work, even the Menu.Refresh() didn't help. func MyNewMenuItem(label string) *fyne.MenuItem { return &fyne.MenuItem{Label: label, Disabled: true} }
@@sorrowseal yup Menu.Refresh is your friend. Perhaps you did not set the updated label into the menu item correctly before refreshing. I’d recommend one of the support channels (Slack, Discord etc) linked from our website to get more assistance
The tray only brings up a menu at this stage. Some OS don’t expect different left/right click options in this system tray. We often add a “Show app” menu item to add this feature.
1. We don't have support for apps that are not visible in the dock (yet), but there is an issue open for it. 2. In a `fyne.Menu` you can make submenus, just set a new menu as the `ChildMenu` of a `fyne.MenuItem`.
@@Fyneio Hello, I was able to add many menus to the tray icon, now I have another question: how can I add submenus to the menu in the trayicon? see screenshot: drive.google.com/file/d/1DHRTWA4x3jIS5l3sxRc66yhIwezIEm-W/view
@@willisim4456 The answer is in the previous reply. Please use our support channels for discussion, TH-cam video is not a great place to help with code questions fyne.io/support/
The system tray library will let you do that. However the Fyne systray menu abstraction doesn’t because that’s not the expected behaviour on some systems
Cool!!
this is real good
elegant
Very good work, thanks!!
Glad you liked it!
oh wow! this really feels like flutter but with go! this really has nice potential rivalling flutter for cross-platform apps! i do wanna ask, is fyne really similar to flutter in a way? also, has there been like a community around the fyne toolkit? like a discord server or a matrix channel or something?
Fyne has a great community across Slack, Discord and GitHub - see the contact info at fyne.io/support/.
In many ways Fyne and Flutter are similar but we take an engineering approach to writing code whereas Flutter is more of a design based toolkit. This means that we get maintainable code and good unit testing / TDD at the cost of not having live-reload custom UI debugging.
👏👏
does it support modal windows as in Lazarus / Delphi?
forget lazarus and delphi and lean go
delphi and lazaurus are just dead
Is it possible to add none clickable label at the top, for example to show running state of a service?
I think you can do this with a menu item that is disabled…
Thanks! Based on the example in this video, I've use something like this and it works. Is there away to update the text to reflect a dynamic state like the clock widget example? I've tried different ideas and none seemed to work, even the Menu.Refresh() didn't help.
func MyNewMenuItem(label string) *fyne.MenuItem {
return &fyne.MenuItem{Label: label, Disabled: true}
}
@@sorrowseal yup Menu.Refresh is your friend. Perhaps you did not set the updated label into the menu item correctly before refreshing. I’d recommend one of the support channels (Slack, Discord etc) linked from our website to get more assistance
How do you click the tray icon to bring up the window?
The tray only brings up a menu at this stage. Some OS don’t expect different left/right click options in this system tray. We often add a “Show app” menu item to add this feature.
- 1. How can I hide Dock icon and only remain the tray icon?
- 2. How can I add more than one menu to the tray icon?
1. We don't have support for apps that are not visible in the dock (yet), but there is an issue open for it. 2. In a `fyne.Menu` you can make submenus, just set a new menu as the `ChildMenu` of a `fyne.MenuItem`.
@@Fyneio Got it, thank you for your reply.
@@Fyneio Hello, I was able to add many menus to the tray icon, now I have another question: how can I add submenus to the menu in the trayicon? see screenshot: drive.google.com/file/d/1DHRTWA4x3jIS5l3sxRc66yhIwezIEm-W/view
@@willisim4456 The answer is in the previous reply. Please use our support channels for discussion, TH-cam video is not a great place to help with code questions fyne.io/support/
@@Fyneio OK, thank you.
what about if i dont want any menu to popup just when i click on systray icon to display the window?
is it possible to do this with fyne or not?
The system tray library will let you do that. However the Fyne systray menu abstraction doesn’t because that’s not the expected behaviour on some systems