GithubHelp home page GithubHelp logo

chran554 / thisisfyne Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4.46 MB

An application to test the fyne UI library for go.

License: Creative Commons Zero v1.0 Universal

Makefile 4.20% Go 95.80%
fyne fyne-app fyneapp go golang

thisisfyne's Introduction

This is Fyne

This is a project to try out and test the Fyne UI library for golang.
(fyne version v2.4.3 in 2024-02-14)

This is fyne

Screenshot

This is fyne - screenshot
Figure 1. This is a screenshot of my very fyne test application

Functionality

First of all, I never intended this application to be useful or solve any problem or use case in any way. I just felt I needed some idea of a image-based program to aim for when trying out Fyne.

The application can open a directory with jpg-images with names on the format selfieXX_YY.jpg. Where XX is a number, selfieXX is the name of the set of selfie images and YY is a number for each selfie in the selfie set.
A bunch of test images can be found under images/selfies.

You can assign a status to each set of selfies ("not handled", "ok", "suspicious" and "fake").

The application can export a json-report on the selfie sets and their given status.

To efficiently navigate the application using keyboard:

  1. You can scroll through the list of selfie sets by (up) and (down) keys.

  2. You can scroll through selfies in a selfie set by using the (left) and (right) keys.

  3. You can set status for a selfie set by using keys 1, 2 , 3 and 4.

Build and run application

This project is developed using macOS and Makefile as build tool.

If you are using another OS and not using Makefile, you can most likely find out how to build the application by inspecting the Makefile and issue the commands manually.

Install go and Fyne

    # ### Initialize modules for your project, if you have not already done so
    $ cd myapp
    $ go mod init MODULE_NAME

    # ### Download the Fyne module and helper tool
    $ go get fyne.io/fyne/v2@latest
    $ go install fyne.io/fyne/v2/cmd/fyne@latest

    # ### Finish by making sure all things are neat and tidy
    $ go mod tidy

Build

  • Build with: make all

Run

  • Run with: ./bin/thisisfyne after build

Build macOS app

This application is developed on the macOS and has a make target to build a macOS app using fyne command on native platform. You can use Fyne to build a MacOS application (with macOS application icon).

  • Build with make macos-app

  • Look for the application (using Finder) in `./bin`directory and double-click it (or drag it to the Applications folder).

Cross compile for other platforms

You need to install fyne-cross (as described on their webbpage). Basically it is just:

go install github.com/fyne-io/fyne-cross@latest
  • Build with make cross-app <plattform>

License

This is supposed to be as free as possible under the Creative Commons Zero (CC0).

CC0

thisisfyne's People

Contributors

chran554 avatar

Watchers

 avatar

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.