19 changed files with 74 additions and 28 deletions
@ -1,10 +1,16 @@ |
|||
# Examples for go/ui |
|||
|
|||
* [Hello, World!](hello-world/): a basic UI demo. |
|||
* [Frame Place()](frame-place/): demonstrates using the Place() layout management |
|||
option for Frame widgets.] |
|||
Here are some example programs using go/ui, each accompanied by a |
|||
screenshot and description: |
|||
|
|||
* [Hello, World!](hello-world/): a basic UI demo with a Label and a |
|||
Button. |
|||
* [Frame Place()](frame-place/): demonstrates using the Place() layout |
|||
management option for Frame widgets. |
|||
* [Window Manager](windows/): demonstrates the Window widget and window |
|||
management features of the Supervisor. |
|||
* [Tooltip](tooltip/): demonstrates the Tooltip widget on a variety of buttons |
|||
scattered around the window. |
|||
* [Menus](menus/): demonstrates various Menu Buttons and a Menu Bar. |
|||
* [Themes](themes/): a UI demo that shows off the Default, Flat, and Dark UI |
|||
themes as part of experimental theming support. |
|||
|
@ -0,0 +1,11 @@ |
|||
# Hello World |
|||
|
|||
 |
|||
|
|||
A simple Hello World featuring a Label and a Button. The button logs |
|||
to the console window when clicked. |
|||
|
|||
## Running It |
|||
|
|||
From your terminal, just type `go run main.go` from this |
|||
example's directory. |
After Width: | Height: | Size: 9.7 KiB |
@ -1,7 +0,0 @@ |
|||
package layout |
|||
|
|||
import "fmt" |
|||
|
|||
func main() { |
|||
fmt.Println("Hello world") |
|||
} |
@ -1,12 +0,0 @@ |
|||
package main |
|||
|
|||
import ( |
|||
"fmt" |
|||
|
|||
"git.kirsle.net/go/ui/eg/layout" |
|||
) |
|||
|
|||
func main() { |
|||
fmt.Println("Hello world") |
|||
layout.main() |
|||
} |
After Width: | Height: | Size: 21 KiB |
@ -0,0 +1,13 @@ |
|||
# Themes Example |
|||
|
|||
 |
|||
|
|||
This demo shows off experimental UI theme support. |
|||
|
|||
The main menu bar lets you open a Window with widgets all using a |
|||
selected theme. |
|||
|
|||
## Running It |
|||
|
|||
From your terminal, just type `go run main.go` or `make run` from this |
|||
example's directory. |
After Width: | Height: | Size: 16 KiB |
@ -0,0 +1,10 @@ |
|||
# Tooltips Demo |
|||
|
|||
 |
|||
|
|||
A screen full of buttons having different Tooltip properties. |
|||
|
|||
## Running It |
|||
|
|||
From your terminal, just type `go run main.go` from this |
|||
example's directory. |
After Width: | Height: | Size: 14 KiB |
@ -0,0 +1,11 @@ |
|||
# Windows Demo |
|||
|
|||
 |
|||
|
|||
This demo lets you open a bunch of Window widgets that can be moved |
|||
around, overlapped, and closed. |
|||
|
|||
## Running It |
|||
|
|||
From your terminal, just type `go run main.go` from this |
|||
example's directory. |
After Width: | Height: | Size: 16 KiB |
Loading…
Reference in new issue