Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    psytron
    @psytron
    What about data communication between toga webview and python ? Any thoughts on roadmap for that ?
    Russell Keith-Magee
    @freakboy3742
    It’s not on my roadmap, no. If you want to contribute something, I’m not morally opposed to it.
    psytron
    @psytron
    "
    Russell Keith-Magee
    @freakboy3742
    Because, as I’ve told you before - Toga is a widget toolkit. It’s a direct response to the idea that “oh, we can build our UI as a webiview” being, IMHO, a bad idea.
    psytron
    @psytron
    Wow cool ! :) pyc only files, I didn't know that, thanks
    Russell Keith-Magee
    @freakboy3742
    That said, there are other potential uses for being able to invoke Python code as a response to a webview, so if someone was to contribute code to do it, I’ll at least consider it (API and implemetnation notwithstanding)
    psytron
    @psytron
    That would be sweet !
    I check back on this project time to time hoping it will be able to be used like electron / react , but with Python. Then anyone could bolt on their favorite pre-built web UI and use Python for system / data aspects, then we wouldn't need electron and there would be a huge number of developers
    This is why I think BeeWare is one of the most exciting instruments
    Russell Keith-Magee
    @freakboy3742
    Ok - so don’t hold your breath on that, because, as I keep telling you - that is explicitly what we’re trying to prevent people doing.
    We don’t want people bolting Web UIs onto an app. We want native apps. Built to run natively.
    psytron
    @psytron
    Yeah I totally agree you're right for most applications I want naive UI too
    I just have some twisty 3D WebGL GUI and game that I wanna package with Python backend
    3D GUI with smooth touch drag and gravity effects
    psytron
    @psytron
    That would be so awesome , since everything else already works great with toga webview
    60 FPS smooth animation, touch events in WebGL renderer , works so well in toga webview
    Russell Keith-Magee
    @freakboy3742
    Well, again - as I keep saying - if you want it, you can build it and submit a PR. The WebView APIs have mechanisms for registering DOM triggers… work out how they work, and come up with an abstracted API for registering a Python callback on a DOM event, and turn that into a PR.
    psytron
    @psytron
    Ok, I will try to replicate the CEF Chrome embedded framework interface
    Also, Thanks for the *pyc tip !
    Russell Keith-Magee
    @freakboy3742
    No problems! As a heads up, it can cause some interesting behavior if you’ve got code doing a introspection (e.g., looking at the __code__ object). It’s also fragile if you have to work across Python versions - but in the context of a briefcase app, you’re shipping the interpreter that will be used, so that risk is virtually zero.
    psytron
    @psytron
    Ok
    Thank you
    nolanl
    @nolanl
    Does anyone know of an example of building a briefcase installer on mac/win/linux using Travis/Circle/Appveyor/Azure/whatever? I know beeware uses beekeeper internally, but I'm looking for something hosted/free for Open Source apps.
    Russell Keith-Magee
    @freakboy3742
    @nolanl So… it turns out we don’t use beekeeper any more :-) We’re in the process of moving everything to Github Actions. I’m actually in the middle of setting up a demo project to show how you can build installers in CI with the new v0.3 branch of Briefcase - it’s not quite working yet, but it’s close. Here’s the work in progress: freakboy3742/helloworld#1
    nolanl
    @nolanl
    ah, thanks. I discovered github actions while poking around, and I'm about 3/4 done setting that up. I'll take a look at your demo, hopefully there is stuff to steal there. =)
    @freakboy374 Looks pretty similar to what I've come up with, so I guess I'm on the right path. It doesn't look like you're making the built installers available anywhere? Is that right?
    Russell Keith-Magee
    @freakboy3742
    @nolanl Not at present - but that’s the next step for the 0.3 branch. One of the new features is a “publish” action, that will push installers somewhere useful. S3 will be the first target, but the hope is to add Github releases, and maybe even automate app store submissions.
    nolanl
    @nolanl
    nice, that'll be cool. Right now, I am just using github action's "artifact" uploader, but it is pretty crappy. It zips everything, even if it is already a single file, so you end up with a .tar.gz or a .zip file in another zip file...
    Callum Ward
    @callumquick
    Hi, I'm a new contributor and was just wondering where's a good place/project to start where I can make an impact
    Asheesh Laroia
    @paulproteus
    Hi @callumquick ! I'm new myself, and I'm focusing on some Android-related work based on a grant. I don't have a good idea for you for now, but based on my experience working on other open source projects, a few questions come to mind.
    What do you like about the BeeWare project? What’s one skill you have? What’s one thing you want to get better at?
    I'm sure that when @freakboy3742 is around, he'll have more advice for you, too.
    Callum Ward
    @callumquick
    I'm actually currently working on an open source "day off" for my employer, and would like to use my Python ability to make a difference to some areas of interest: I've been interested in the idea of cross-platform GUI because of the rise of Electron etc and thought a Python-based implementation sounded like something I could help on
    Asheesh Laroia
    @paulproteus
    Neat @callumquick ! Today is that day off? Or are you prepping ahead of time?
    Callum Ward
    @callumquick
    Today is the day for now, but I can take up to 5 per year and have been doing other Cpython contributions earlier in the year
    Asheesh Laroia
    @paulproteus
    Cool!
    Callum Ward
    @callumquick
    If I can start getting into an area to help for Beeware, it might set me up to make some larger contributions early next year
    I'm also working as part of a small team at my office, all making Python open source contributions on these days as small hackathons: https://enhackathon.github.io/
    So if I can find good areas to make an impact, we could find a good number of engineer-days to work on them
    Asheesh Laroia
    @paulproteus
    I'm fairly new to the project; my situation is I'm working with the project as a contractor per https://beeware.org/news/buzz/we-have-a-contractor-for-our-android-contract/
    I'm specifically working on a project to change how BeeWare's Android integration works.
    https://beeware.org/contributing/how/first-time/what/ suggests that the CSS layout system in the BeeWare world could use work, and that this is expected to pay off no matter which platform is being targeted.
    Personally, I think that one very valid approach is to work through BeeWare tutorials and come to your own opinion about what is important.
    Callum Ward
    @callumquick
    Sure, I had a go with colosseum but it's pretty hard to figure out which areas specifically could do with work, or if you've identified a test case to fail and then fix whether it's genuinely a fix or implementing a whole new feature (and where the spec for that comes from)
    Asheesh Laroia
    @paulproteus
    Ah, gotcha
    This is now beyond my expertise, but I expect Russell will be able to say more when he's online from Australia time.
    Callum Ward
    @callumquick
    Thanks for your help anyway, useful to know there's people who're responsive and might be able to guide our efforts :)
    Russell Keith-Magee
    @freakboy3742
    @callumquick If you’ve got a single day (although I’m guessing the day is mostly over now…), If you could take beeware/briefcase#266 for a spin and let me know if you have any problems, that would be incredibly helpful. The quick start guide in the PR’s docs should tell you what you need to get started; I’m around if you need any more guidance
    Callum Ward
    @callumquick
    @freakboy3742 I may be able to get another day for use before the New Year, but if not I maybe be able to take some time in early January to have a look at issues, so anything day-scale that's available then I'll be able to try out :) I'll get back in touch on this channel closer to the next time
    Russell Keith-Magee
    @freakboy3742
    @callumquick No worries - give us a heads up if you do, and I’ll see if I can find a day-long project for you to tinker on. In the meantime, if you haven’t already run through the tutorials, that will give you a feel for what is currently possible.