Giter Club home page Giter Club logo

fyne-credits-generator's Introduction

fyne-credits-generator

Automatically generate credits window for the Fyne application.

Installation

$ go install github.com/lusingander/fyne-credits-generator/cmd/fyne-credits-generator@latest

Usage

First, execute fyne-credits-generator command in the directory where go.mod is located.

$ cd <fyne project directory>
$ fyne-credits-generator > credits.go

Then, all you have to do is call CreditsWindow function in your Fyne application, like this:

button := widget.NewButton("Show credits", func() {
    CreditsWindow(fyne.CurrentApp(), fyne.NewSize(800, 400)).Show()
})

And you can show a window like this:

See the sample application for an example.

More info:

$ fyne-credits-generator -help

old style

This generate code for Fyne v2.0 or later. If you want to generate code for Fyne v1.4 or earlier, you can specify the target.

The components used by 1.4 and later are different from those used by 1.3 and earlier. So if you want to use Fyne v1.3.x or earlier, specify target=1.3.

$ fyne-credits-generator -target=1.3 > credits.go
$ fyne-credits-generator -target=1.4 > credits.go

Requirements

Application must use go modules for dependency management.

Note

This application uses gocredits to collect LICENSE files.

fyne-credits-generator's People

Contributors

lusingander avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

cheatcoder

fyne-credits-generator's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.