-
This is my current code a := app.New()
// Create a new window
w := a.NewWindow("PNG properties")
// Create a new grid layout
grid := container.New(layout.NewGridLayout(2))
// Create a new label and textbox for each property in the struct
promptLabel := widget.NewLabel("Prompt:")
promptTextbox := widget.NewEntry()
// other widgets
// Add the label and textbox widgets to the grid layout
grid.Add(promptLabel)
grid.Add(promptTextbox)
// other widgets
// Set the window content to the grid layout
w.SetContent(grid)
// Show and run the window
w.ShowAndRun() I want to set the width of the first column to a fixed with and the second one to be dynamic. I want the rows to be dynamic height depending on the height of the widget as I wanted to use a multientry widget. How do I do that? |
Beta Was this translation helpful? Give feedback.
Answered by
geocine
Jan 29, 2023
Replies: 1 comment
-
Use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
geocine
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use
FormLayout