![]() But a script that needs a bag of other specifically versioned scripts needs to live in it's own (sometimes impossible) world. Statically compiled binaries work almost everywhere. I wish nim was 100% python code compatible.Ĭompiled binaries with shared libs work fine as long as they come from an OS package repository. Except give python a compiler that can spit out binaries and libraries. Python absolutely sucks in this regard and I don't think there is a permanent solution. The 'dead' version is probably still hanging around in my home directory taking up space somewhere. No idea what broke it, perhaps a python update or something. After following the rabbit around I just uninstall pipx, install it again, and then reinstall the thing that I was originally trying to use. I looked at the code in the /usr/bin/thing and it was just a wrapper. I tried to use something a few days ago that had been working until a month ago and it failed with some useless generic python error that I can't remember. ![]() But this library looks like a good alternative, so thanks for posting. They talked about opening sourcing it as part of something else – I hope they do because I found it really handy for quickly knocking together simple GUIs. The "setup_view" function was the whole API. One benefit of that over setting properties in the constructor is that, if you need a name for a widget (e.g., to set the text later), you can still set the properties of it in the main bulk of the view. A key difference is that setting properties/signals and nesting widgets was done together. I did something like that in an old job, except it was a much thinner wrapper around PyQt (and surprisingly little code). I have a suggestion for it, although it might be this library is too mature for such a dramatic change: use dictionaries (which, as of a recent Python, remember which order the elements were inserted) instead of lists. I'd love to spend more time on this, I think it is really cool, but tbh I haven't gone too far beyond the basics and since day job has no use for such stuff it gotta be squeezed into when i feel like doing code on the weekend. I wrote a little blog post about this a couple years ago (seriously, i move sooooo slowly on this stuff!). I also have a `DataControllerWidget` which does the callback on any change event, allowing for real-time manipulation. For example you might do Find(string text) ` and let it auto-generate the menu and dialog box for it. My menu thing uses this too, you can attach functions to menus and it can pop up a dialog. that's about all i bothered to implement so far, tbh my gui toolkit is more of a side project toy than a main event so the time i put in is limited), for example using 100)` on an `int` to make it a slider from 0 to 100 instead of a text box asking for a number. You can also attach some user defined attributes to tell it which widget you want to control the thing (defaults are line input for string and int, drop-down select for enum, groups for structs. early and end your program this will return when all windows are closed need to run the event loop explicitly so main doesn't return and calls the function you provide when the user hits OK auto-creates a dialog for all the parts of the struct then do the dialog function with the struct and it it requires a struct even if you only want one item need to define the data you want in a struct, I've played with this a bit over the years, starting with my automatic form generator for the web back in 2011 based on function arguments (coupled with an automatic data to html thing to see the function output), and more recently some similar stuff for my gui toolkit too (using the D programming language).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |