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.


    Mazecraze game updated to use new ui.

    Pythonista
    7
    9
    4922
    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.
    • Gcarver166
      Gcarver166 last edited by

      I've updated my MazeCraze game to use the new ui system for it's options menu. Much much cleaner.

      https://gist.github.com/GuyCarver/4000630

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

        FYI, the script doesn't work for multiple reasons. First of all, a number of special characters (quotes, <, >, &) got converted into HTML entities (&lt; ...) which are not valid in Python. Even after replacing these the script won't run, because we need the .pyui file as well ;)

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

          I think it might be time to build a new Gist importer script that can handle .pyui files properly...

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

            If you are using the Dropbox sync script and Readdle Docs you can just download the Gyst zip open in Docs and move the files to your folder.

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

              In gistcheck.py, I tried this in the download_gist function:

                  #if lang != 'Python': <= trying to replace this check
                  filename = file_info['filename']
                  if os.path.splitext(filename)[1] not in ['.py', '.pyui']:
                      continue 
              

              But the .pyui files are created as .pyui.py files with the editor.make_new_file() function. So that didn't work.

              Anyone got any suggestions how to easily download gists with more than .py-files?

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

                In addition to the above, I also changed file creation in gistcheck.py and that correctly made the .pyui file.
                It'd be best if it only wrote .pyui files but it was just a test.

                   #replacing with direct file write.
                   #editor.make_new_file(filename, content)
                   f = open(filename, 'w')
                   f.write(content)
                   f.close()
                
                1 Reply Last reply Reply Quote 0
                • LawAbidingCactus
                  LawAbidingCactus last edited by

                  How do I import the .pyui file into Pythonista?

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

                    Any chance this could be updated to use the packui application?

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

                      Just use a recent version of gistcheck
                      https://gist.github.com/jsbain/1c95b3491d65d9e24456

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