Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    paulproteus @paulproteus waves and stretches
    MMartin09
    @MMartin09
    Is there a list widget which I can use in Windows?
    Russell Keith-Magee
    @freakboy3742
    What are you looking for? A pulldown to select from a list, or a table of options? The former is Selection, the latter is Table
    MMartin09
    @MMartin09
    I need to create a list of files so the table widget with one column should work. Thanks.
    Julianna Chen
    @jchenj

    @freakboy3742 I've got an idea for revising the order of sentences to make the note about console output a bit more obvious - I'll submit a PR :)

    Thanks! If you’ve got any suggestions on how we can make that note more obvious, let us know - if changing the wording or layout will prevent others from having the same problem, that’s an easy fix!

    Matthew Zenittini
    @mattz89
    @freakboy3742 - sorry for the delay. No I didn't get an out of space error when packaging it. Turns out.. A simple reboot of the computer fixed it xD... However, I really appreciate the advice on unpacking the dmg file. Understanding the troubleshooting there will certainly help in the future.
    Russell Keith-Magee
    @freakboy3742
    @mattz89 Hrm - a little concerning that we don’t understand exactly what went wrong, but I’m glad it’s working now
    Matthew Zenittini
    @mattz89
    I'll try to run through things again and see if it reproduces.. Will keep you posted.
    Tom
    @tomthedankmemer_twitter

    @tomthedankmemer_twitter Ok; so the BeeWare tutorial shows you how to put widgets on a page. The documentation for Toga (https://toga.readthedocs.org) has more tutorials to explore more of this. Build up the user interface that you want - what buttons, labels and inputs do you need to give the user control.

    the thing is that i dont understand how the structure works through the tutorials

    paulproteus @paulproteus waves
    Russell Keith-Magee
    @freakboy3742
    @tomthedankmemer_twitter Ok - you’re really going to help us our here. “I don’t understand” doesn't give us anything to work with. What are you trying to acheive? How have you tried to make that happen. What errors have you seen? What is the specific source of confusion?
    Tom
    @tomthedankmemer_twitter
    @freakboy3742 Ok so, the program i want to make, on startup, has three buttons that you can press. Each button executes different code and creates windows that display output of that code. I cant quite achieve that because i dont know how to put a window in a window or place any widget at all
    i dont really understand how to work with the beeware classes
    Tom
    @tomthedankmemer_twitter
    by the way- id really prefer if i could make "menus" instead of buttons
    i dont know if that is possible though
    Russell Keith-Magee
    @freakboy3742
    And you’ve done the Toga tutorials? Which put buttons on a GUI, and introduce creating menu items?
    Like - Toga tutorial 0 is literally what you’ve just described - a button on a gui that when you press it does things.
    And the beeware Tutorial isn't far off either.
    Tom
    @tomthedankmemer_twitter
    when i overwrite the code from the first part of tutorial one on app.py it doesnt even run
    i dont know how to change it into briefcase format
    Russell Keith-Magee
    @freakboy3742
    First off: Is this toga tutorial 1 or the beeware tutorial 1?
    Tom
    @tomthedankmemer_twitter
    toga tutorial 0
    Russell Keith-Magee
    @freakboy3742
    Ok - and the tutorial works, but you can’t adapt it to briefcase?
    Tom
    @tomthedankmemer_twitter
    i dont know how to adapt it to my pregenerated briefcase app.py code
    Russell Keith-Magee
    @freakboy3742
    Ok; if you want to see a working example of tutorial 0 as a briefcase project; the Toga codebase has that code
    Tom
    @tomthedankmemer_twitter
    alright, that works!
    so, i had a question in my mind
    how does app.py read the code
    from top down?
    i dont quite get it
    what is the path that it takes, and how can i manipulate that to put widgets inside boxes etc
    keep in mind im kind of a rookie in object oriented
    Russell Keith-Magee
    @freakboy3742
    I don’t understand what you mean by “the path it takes”.
    Tom
    @tomthedankmemer_twitter
    which code gets read first etc
    i can only see a main() function getting executed, but i dont know what code it reffers to
    Russell Keith-Magee
    @freakboy3742
    Ok - I’m really having difficulty understanding where the source of confusion is. app.py isn’t that big. It defines a “build” method that creates a box and puts a button in that box. And the GUI appears with a button.
    Where in the process are you getting lost?
    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.