Coder Social home page Coder Social logo

Comments (6)

bryan-lott avatar bryan-lott commented on August 17, 2024

+1
This would be a fantastic way to immediately increase the usefulness without having to extend the Gooey decorator.

from gooey.

LudoVio avatar LudoVio commented on August 17, 2024

A nice solution would be the generation of an 'end-user friendly' config file, in JSON for example, easy to modify for simple change, like widgets used and view layout, then the GUI source code is generated from this file.
For 90%++ of tweaks peoples will want => edit the JSON file
For the rest => edit the python source file generated

from gooey.

chriskiehl avatar chriskiehl commented on August 17, 2024

@Julian-O

A nice solution would be the generation of an 'end-user friendly' config file, in JSON for example

That's actually exactly what I'm working on in the GaaS branch :)

from gooey.

chriskiehl avatar chriskiehl commented on August 17, 2024

@Azeirah
@LudoVio

The main Gooey decorator now accepts a param called dump_build_config. This will output all of the json used to power Gooey.

Alternatively, there's also a method in the gooey package to do the same

$ python -m gooey --create-build-config path/to/a/python/file.py

I'm closing this issue as I think json is a better fit for what Gooey is than raw python code. If you need something beyond the interface that Gooey provides, then I'd wager the handful of GridSizers and TextCtrls that would make up a Gooey source dump wouldn't really help all that much in the grand scheme of things. Plus! JSON makes it easy to roll friendly interfaces for non-python programs.

from gooey.

Julian-O avatar Julian-O commented on August 17, 2024

For the record: This comment incorrectly attributed a quote by @LudoVio to me.

(It isn't a problem, but I was confused about my contribution to this thread, and want to prevent myself from being confused again by leaving this note.)

from gooey.

chriskiehl avatar chriskiehl commented on August 17, 2024

@Julian-O Doh! Sorry!

from gooey.

Related Issues (20)

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.