Skip to content

Commit 0d06ee3

Browse files
committed
Add a new migrating section
1 parent 3f451aa commit 0d06ee3

File tree

8 files changed

+59
-6
lines changed

8 files changed

+59
-6
lines changed

content/docs/api/v2/fyne/pkg.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ slug: (package)
55

66
aliases:
77
- /api/
8-
- /api/.html
8+
- /api/v2/
99
- /api/v2.0/
1010
- /api/v2.0/.html
1111
- /api/v2.1/

content/docs/faq/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
weight: 10000
2+
weight: 11000
33
title: "Frequently Asked Questions"
44
slug: faq
55
icon: question_mark

content/docs/faq/layout.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: page
33
title: Layout and Widget Size
44
slug: layout
55

6-
weight: 10010
6+
weight: 11010
77
---
88

99
Intro

content/docs/faq/theme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Theme and Customisation
33
slug: theme
44

5-
weight: 10020
5+
weight: 11020
66
---
77

88
In this page we answer some common questions about the design of Fyne themes and widgets.

content/docs/faq/troubleshoot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Troubleshooting
33
slug: troubleshoot
44

5-
order: 10030
5+
order: 11030
66
---
77

88
Some things can not go as expected during setup or in compiling your first app. We try to address these problems here.

content/docs/migrating/_index.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
weight: 10000
3+
title: "Migrating to Fyne"
4+
slug: migrating
5+
6+
description: ""
7+
icon: "compare"
8+
draft: false
9+
toc: true
10+
---

content/docs/migrating/guiintro.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
weight: 10001
3+
title: "GUI Overview"
4+
slug: guiintro
5+
6+
aliases:
7+
- /guiintro
8+
---
9+
10+
Graphical applications are often more complicated to create than web
11+
based or command line applications. Fyne changes this by utilizing the great design of Go
12+
to make building beautiful graphical applications simple and fast.
13+
14+
For a graphical application to work we need to create a window and ask
15+
the app to run. Doing so will start the event handling code that responds
16+
to user input and updates the screen as our code runs.
17+
18+
This example creates a new application with a single window with the
19+
title "Hello". Inside this window we place a single label containing
20+
the text "Hello Fyne!".
21+
22+
```go
23+
package main
24+
25+
import (
26+
"fyne.io/fyne/v2/app"
27+
"fyne.io/fyne/v2/widget"
28+
)
29+
30+
func main() {
31+
myApp := app.New()
32+
myWindow := myApp.NewWindow("Hello")
33+
34+
myWindow.SetContent(widget.NewLabel("Hello Fyne!"))
35+
36+
myWindow.ShowAndRun()
37+
}
38+
```
39+
40+
Once the window content is set we show it and run the application
41+
(`Window.ShowAndRun()` is a shortcut for `Window.Show()` && `App.Run()`).
42+
After calling Run() or ShowAndRun() our application will run and the
43+
function will return after the window has been closed.

content/docs/welcome.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ leading cross platform apps.
1515
|:------:|:-------:|:-------:|
1616
| If you can't wait to start building your first Fyne app, you should follow our getting started guide.| If you are new to the Go language, we recommend running through the Go tour before returning to the Fyne documentation. | For developers who prefer to learn from videos we have a collection of getting started tutorials on YouTube. |
1717
| <a href="/started/quick" class="btn btn-primary btn-l">Get Started</a> | <a href="https://go.dev/tour/" class="btn btn-l btn-primary" style="visibility: visible;">Take the Go Tour</a> | <a href="https://www.youtube.com/playlist?list=PLjpijTpXl1_po-ld8jORR9k5NornDNKQk" class="btn btn-l btn-primary">Tutorial Playlist</a> |
18-
| You can also check out the latest <a href="/api/">API documentation</a>, or if you came here with a question in mind then you may find an answer in the <a href="/faq/">FAQs</a>. | There is also an <a href="/guiintro/">introduction to GUI development</a> if this is your first time building an application. | If you have questions about the videos or want to let us know that one is missing then please <a title="Submit feedback" href="https://fyne.io/support/">get in touch</a>.|
18+
| You can also check out the latest <a href="/api/v2/">API documentation</a>, or if you came here with a question in mind then you may find an answer in the <a href="/faq/">FAQs</a>. | There is also an <a href="/guiintro/">introduction to GUI development</a> if this is your first time building an application. | If you have questions about the videos or want to let us know that one is missing then please <a title="Submit feedback" href="https://fyne.io/support/">get in touch</a>.|
1919

2020
---
2121

0 commit comments

Comments
 (0)