Git Product home page Git Product logo

Comments (4)

sunshine69 avatar sunshine69 commented on August 21, 2024

OK I figured it out, it is a build tags issues. So the normal go get wont return success but get into the source file run ./gobbi build will successfully built it. Then for my test all I have to pass the tags (same in the gobbi script file.

from gobbi.

pekim avatar pekim commented on August 21, 2024

As mentioned in https://pekim.github.io/gobbi/getting-started.html, start with getting the whole gobbi library,

go get github.com/pekim/gobbi

Then you'll be able to import a package such as gtk.

import "github.com/pekim/gobbi/lib/gtk"

That's followed by mention of the need to use build tags, and a link to a page with more details.
(The link was broken, and I've just fixed it.)

I'm open to suggestions about how to improve that documentation.

from gobbi.

sunshine69 avatar sunshine69 commented on August 21, 2024

Thanks, I have not read the doc, yet jumps in as usual as the README.md is only the first I read. Thus if the information and quick start added to README is probably useful IMHO.

I now have some issues (form porting my app gotk3 to gobbi) - that the builder.ConnectSignals() has different signature. gotk3 allows me to define a signals := map[string]interface{} but gobbi requires a uintptr. I know I can connect signal manually for each widget but it is tiring ...

Any idea of quick way to connect signal?

from gobbi.

pekim avatar pekim commented on August 21, 2024

In general gobbi provides support for typesafe connection of signal handlers. Connecting signals for a Builder would, of necessity, connect signal handlers in a non typesafe way. So unlike most of gobbi, which is generated, this will need to be hand coded. That's fair enough given the specific case.

I think that I can probably follow a broadly similar approach to gotk3 for this. But it'll be non-trivial, and will take me some time. I doubt that I'll be able to get to it until the weekend.

from gobbi.

Related Issues (17)

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.