by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Tom
    @tomthedankmemer_twitter
    first of all, i see many functions getting defined,
    but i cant understand how they get executed
    secondly, in my mind, im only familiar with the concept of html when building a gui, in which you literally put <stuff><stuff> within other <things>(Here)</things>
    Russell Keith-Magee
    @freakboy3742
    Right - and the same thing is happening here. You don’t control how the app “runs” - the build method in this example is your “HTML” document.
    And the layout is very closely aligned with HTML. If you get to the next tutorial, it’s called “you put a box inside another box” - which is literally what HTML is.
    Sorry - tutorial 2.
    Tom
    @tomthedankmemer_twitter
    hmm ok so
    Russell Keith-Magee
    @freakboy3742
    So all you’re describing are the widgets you want on the screen - the buttons, text inputs etc - and putting them in boxes that relate to one another.
    Tom
    @tomthedankmemer_twitter
    what does "return box" do inside the function
    Russell Keith-Magee
    @freakboy3742
    Ok - you really need to do all the tutorial.
    That gets explained along the tutorial path.
    Tom
    @tomthedankmemer_twitter
    will the code work with briefcase though?
    Russell Keith-Magee
    @freakboy3742
    Tutorial 0 is a simple example. It defines a single function (build) that… builds… the GUI.
    Why does that matter?
    Briefcase is a packaging tool.
    You’re not up to packaging yet.
    You’re still building the app.
    Tom
    @tomthedankmemer_twitter
    wait, so do i use toga instead?
    im confused
    Russell Keith-Magee
    @freakboy3742
    Ok - so your question like asking “do I use this hammer to bake this cake”. No - you use the hammer to hammer the nail. You bake the cake by baking a cake.
    Lets step back.
    How did you find out about BeeWare?
    Because it seems like you’ve got the end of half a dozen threads, and you’ve missed the actual narrative about how the pieces all fit together.
    Tom
    @tomthedankmemer_twitter
    i was looking for a way to add gui to a python program that also is cross platform, i then realised that android is, for the time being, not supported but is going to be in the future, so i preffered beeware from the other alternatives because of the native support
    Russell Keith-Magee
    @freakboy3742
    Ok - that’s not what I asked.
    How did you find out about BeeWare? WHY is beeware on your radar?
    I’m trying to find out where the knowledge gap is.
    Someone has clearly told you something about BeeWare, but they’ve either done a bad job, or an incomplete job.
    (And that person might be me/us - I’m just trying to work out where you’ve gone off the rails)
    BeeWare is an umbrella project. It’s a collection of smaller, independent projects aimed at the broad goal of building GUI apps with Python.
    That involves a bunch of things. It means “how do I get Python to run on my device” (when your device isn’t a laptop). It involves “How do I talk to the system libraries on my device”. It means “How do I put a window and a button on the screen”. And it means “how do I take this collection of code and package it in a way I can give it to someone else."
    Those subprojects are, respectively “Python-*-support”, “Rubicon”, “Toga”, and “Briefcase”.
    For your purposes, you don’t need to worry about the support and rubicon projects. You only need Toga and briefcase.
    Toga is a GUI library. It’s like Qt or Tkinter or WXWindows or GTK.
    It’s an API for putting a window on the screen, responding to button clicks.
    Tom
    @tomthedankmemer_twitter
    ok so, i wanted my code (rookie btw) to have a user interface, and also be installable using msi, exe or something, and then i searched on google about how to do that, found out about beeware and briefcase, realised that the gui on briefcase comes from toga, not briefcase itself(which does the packaging), but i thought "ok, if toga is supported in briefcase then i can use briefcase for the whole process)
    Russell Keith-Magee
    @freakboy3742
    PLEASE stop
    PLEASE
    Tom
    @tomthedankmemer_twitter
    ok?
    Russell Keith-Magee
    @freakboy3742
    You’re rushing ahead, and you are missing an important part of the picture, and you are getting confused as a result.
    Tom
    @tomthedankmemer_twitter
    alright was just answering to your question
    Russell Keith-Magee
    @freakboy3742
    First and foremost - I need to you to do an entire tutorial path, from beginning to end.
    I would suggest doing the BeeWare tutorial (docs.beeware.org)
    And I mean the entire tutorial. Not “I did step one and then I decided to do something on my own”.
    Because the tutorial is a learning path.
    It introduces concepts.
    Tom
    @tomthedankmemer_twitter
    ive already been through tutorial 0 and 1 countless of times, and i always lose it on tutorial 2
    Russell Keith-Magee
    @freakboy3742
    And again: Toga tutorial 2 or Beeware tutorial 2?
    Tom
    @tomthedankmemer_twitter

    And I mean the entire tutorial. Not “I did step one and then I decided to do something on my own”.

    i dont even know the basics, how could i wander off

    And again: Toga tutorial 2 or Beeware tutorial 2?

    beeware

    Russell Keith-Magee
    @freakboy3742
    Ok - Now we’re getting somewhere.
    Let me guess. You get to the “Adding some content on our own” section, you replace the content, and the app stops working?