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.


    PySimpleGUI wrapper for Pythonista...?

    Pythonista
    4
    7
    1012
    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.
    • Niall
      Niall last edited by

      Hi,

      I teach programming and I'm now using PySimpleGUI in my courses. The university only officially supports CPython on desktop and Anaconda/Jupyter; however, I'd be happy for students to use an iPad if they've got one (and a keyboard) but only if they can use the right libraries!!

      If you're not familiar with PySimpleGUI, it's a fairly basic but robust cross-platform standard that is implemented as a wrapper for all the main Python GUI libraries -- TkInter, Qt, WxWidgets, Remi (web browser as GUI). You'll clearly get different visual results on each, but the functionality will be almost identical on each.

      To me, a Pythonista wrapper (PySimpleGUIPythonista or similar) would make perfect sense, as it would give us a way of making cross-platform GUIs on our iPads and would mean a lot more Python apps would work on Pythonista.

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

        (Did have a wee nosey at Toga, as I see Pyto does that, but it's more complicated than I want for a course where GUI dev is a side-effect of the content, not the main goal. Also, there seem to be serious dependency problems installing Toga on Windows when it comes to Python versions, and that's a hell of lot of discouraging boilerplate for absolute newbies...)

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

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • mikael
            mikael last edited by

            While it would be an intriguing and feasible project to wrap the Pythonista UI components in PySimpleGUI, it would still not be trivial, and I am afraid the results might not meet the needs of most user groups.

            For students, taking a course exercise and trying to run it on Pythonista could very easily fail due to unsupported syntax, given that Pythonista runs the now-unsupported Python 3.6.

            For Pythonista users, given that a lot of the power of Pythonista is in its access to iPhone-native functionality, it is very unlikely that an existing significant piece of code would run anywhere else.

            Thinking of your requirements, if PySimpleGUI really runs reliably on the web, the students with iPads could maybe use repl.it to run the code, sync code with GitHub, and do the editing on Pythonista.

            You probably already have all the materials built around PySimpleGUI. Otherwise I would suggest you to take a look at flet, which has the benefit of running a native or web Flutter app without additional platform-specific wrappers.

            1 Reply Last reply Reply Quote 1
            • Niall
              Niall last edited by Niall

              Well, I'm teaching an introductory course and need to teach a "lowest common denominator" version that will work for various different courses with different needs.
              Between the various IDEs and Python installs, the lowest I've found is WinPython 3.7, and the only potentially significant difference between that and 3.6 for a beginner's level course is the ordering of dictionary keys.

              "For Pythonista users, given that a lot of the power of Pythonista is in its access to iPhone-native functionality, it is very unlikely that an existing significant piece of code would run anywhere else."
              The reason I never became a heavy Pythonista user myself was the lack of portability. I would have done a lot more dev work on the iPad if I wasn't damning myself to forking stuff.

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

                (I love the idea of sitting on a beach coding, but even if it had the battery life for it, my laptop's staying off the beach. I've still go a first-gen iPad mini, which I consider practically disposable at this point!!!)

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

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Powered by NodeBB Forums | Contributors