omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    App template for iOS and small console-based game?

    Pythonista
    3
    4
    2841
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • david
      david last edited by

      Hi all,
      can I use the template to generate an App for iOS if I developed a small console-based game? how it will be the interface of the user in that case?

      Best regards.

      Note: currently do not have a Mac (Intel) to test.

      1 Reply Last reply Reply Quote 0
      • dgelessus
        dgelessus last edited by

        I haven't used the template myself yet. But the template is meant for scene and ui scripts, so the console probably doesn't exist there. You could make a simple console yourself using ui, and then write functions similar to print and input to write to and read from your own console. That should also work in the template, even if the normal console doesn't exist there.

        (And yes, you need a Mac to build an app using the template. There's no way to make normal iOS apps without a Mac and Xcode.)

        1 Reply Last reply Reply Quote 0
        • tileyon
          tileyon last edited by tileyon

          The Pythonista app template presents the console output by default. UI elements, if included in your code, are placed atop that console within the presentation structure (sheet, full_screen, popover etc...). The "run" and "clear" buttons are included in the console and may be disabled by following instructions included in the template. You do need a Mac to use the template which is an Apple requirement and not a decision of @OMZ the Pythonista developer. That console does not seem to show in Xcode's iOS emulator but comes on when you test or install your app in an iOS device. You will have to implement your own Command Line Interface (CLI). They usually consist of multiple choices presented to the user to pick from by inputting a corresponding number.

          1 Reply Last reply Reply Quote 0
          • david
            david last edited by

            Hi all,

            The intention was to use the docopt package, but being so, I am assuming that I need to do a specific UI. The mini game aims to emulate a system admin terminal.

            The case is that I will need a virtual keyboard (do I have to do it or is there any available in/for pythonista?)

            Cheers,
            David

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB Forums | Contributors