• SkiNoCap

    @cvp alright so it works without an error, but when I click (tap) on the window it doesn't show any sort of a response (now thinking about it, probably because it's an exception, not running the code - correct me if I'm wrong). Is the effect the same as .exitonclick() when run through another IDE like IDLE? Away from my PC and can't try it right now.

    posted in Pythonista read more
  • SkiNoCap

    @ccc said:

    S

    I might be typing it in incorrectly, but when I do I get a syntax error with "except AttributeError". Here's what I typed:

    try:
        wn.exitonclick()
    except AttributeError:
        pass
    

    posted in Pythonista read more
  • SkiNoCap

    @cvp I see that the Pythonista module is not the same as the standard one (including mouse and keyboard interaction which is what S.exitonclick() would be) but S.clear() doesn't do what I want it to, which is to close the UI. I guess there is no alternative though, I'll just have to remember to include S.exitonclick() when I turn in my assignments. Thank you!

    posted in Pythonista read more
  • SkiNoCap

    I have been starting to use turtle in my coding class, and one of the commands they demand I use is wn.clearscreen(), something that Pythonista says does not exist. First of all, why does it not exist? Am I missing a library or is the library out of date or something else? Secondly, how can I configure things to allow this argument? Any help would be appreciated, thank you.

    posted in Pythonista read more
  • SkiNoCap

    @JonB also is there a way to edit the tab sizes in Pythonista? I'm am really new to programming, as I've said, and don't really know all the features.

    posted in Pythonista read more
  • SkiNoCap

    @JonB the assignment required a .py file which would, when run in IDLE, output a business card-esque ASCII style image. I posed the same question over on StackOverflow and I was directed to use spaces instead of tabs (which are different sizes in different places), which did work (in Pyto and Pythonista at least, don't have access to IDLE currently). I have been using the text editor to create my files, not the console.

    Here is a copy of my original code with tabs:

    print("+------------------------------------------------+")
    print("|    |\t\t\t                                    |")
    print("|   -|\t\t\t   Zielinski, Michael               |")
    print("|  --|\t\t\t   Tribute Liabilities Associate    |")
    print("| ---|\t\t\t   Parasail Capital                 |")
    print("| ---------\t                                    |")
    print("|  -------\t   4 Hunger Plaza                   |")
    print("|\t\t\t\t   STE 1400                         |")
    print("|\t\t\t\t   District 12, Panem 00012         |")
    print("|\t\t\t\t                                    |")
    print("| Work: (406)-214-1165\t@: michael@parasail.com   |")
    print("+------------------------------------------------+")

    posted in Pythonista read more
  • SkiNoCap

    I downloaded Pythonista on my iPad for a college course I'm taking, figuring it would be an easy way to fit my assignments into my workflow. Up comes an assignment where we have to align multiple lines of code.

    First issue, but one that isn't too relevant here, but maybe someone can help anyway, is I can't do multi-line strings in Pythonista (so it appears). Second, and bigger, problem is that Pythonista's command line output differs greatly from IDLE's. My teacher graded my assignment and told me that my lines are all out of line and I got docked for it when in Pythonista it was perfectly in line.

    My question is, why is Pythonista not basically a copy of IDLE and how can I work around it (if there is a workaround) using only my iPad?

    posted in Pythonista read more
Internal error.

Oops! Looks like something went wrong!