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.


    dialogs module in 1.6, very nice date and time implementation

    Pythonista
    date dialogs time
    4
    9
    6734
    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.
    • Phuket2
      Phuket2 last edited by

      I only seen this today. But in the dialogs.form_dialog, the way @omz has implemented time and date is very nice. Is animated and the right size. Really nice.

      Just worth a look

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

        Opps, the form name not so good. I use these bad names when testing

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

          Haha thanks for sharing. Can't wait for the Appstore release.

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

            Was going to say this isn't documented, but then looked inside pythonista itself (1.6b) and it's there. Where can the beta documentation be accessed with a web browse? I guess the docs will just get updated with the 2.0 release though.

            Phuket2 1 Reply Last reply Reply Quote 0
            • Phuket2
              Phuket2 @Tizzy last edited by

              @Tizzy , to be true full, I am not sure if @omz would have got all the docs updated before submitting 2.0. He may have. But it's a big job. like all major releases I think it will take a while for all the loose ends to be tied up. But I can only imagine omz will have a lot more time to dedicate to the loose ends after being out of beta. All speculation on my part.

              But modules like ui, dialogs etc that are written in Python can be found in the standard-library/site-packages/ dir. Can get a better understanding of what's there by looking at the files

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

                Where can the beta documentation be accessed with a web browser?

                https://github.com/cclauss/Ten-lines-or-less/blob/master/pythonista_docs.py

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

                  @ccc thanks. That's cool! What I meant was is it available anywhere on the web such that I can access it from my Mac? Also, tried to run that from the simulator in xCode and it doesn't work there fyi. It returns a path behind an executable...such that you can't "show package contents" to get there - it loads a blank page from the simulator.

                  Phuket2 2 Replies Last reply Reply Quote 0
                  • Phuket2
                    Phuket2 @Tizzy last edited by

                    @Tizzy, couldn't you just copy the docs directory to your Mac. Via dropbox or what other methods you use

                    1 Reply Last reply Reply Quote 0
                    • Phuket2
                      Phuket2 @Tizzy last edited by Phuket2

                      @Tizzy, just copied some code to create a zip file in the root dir. Just modified it to zip the documentation folder. I opened up the zip in ZipExtractor on iOS, it appears all correct.
                      Maybe useful to you...but read through it first before running it

                      The zip file created on my ipad was 145.3mb

                      # coding: utf-8
                      
                      import os
                      import zipfile
                      
                      
                      # copied from stackflow
                      # http://stackoverflow.com/questions/1855095/how-to-create-a-zip-archive-of-a-directory
                      
                      def zipdir(path, ziph):
                      	# ziph is zipfile handle
                      	for root, dirs, files in os.walk(path):
                      		for file in files:
                      			ziph.write(os.path.join(root, file))
                      
                      if __name__ == '__main__':
                      	documents_path = os.path.expanduser('~/Documents')
                      	zip_file = os.path.join(documents_path , 'web_help_file_docs.zip')
                      	documentation_path = os.path.join(os.path.split(os.__file__)[0],
                      	'''../../../Documentation/''' )
                      	print 'Starting Zip....'
                      	
                      	zipf = zipfile.ZipFile(zip_file, 'w')
                      	zipdir(documentation_path, zipf)
                      	zipf.close()
                      	print 'Zip completed'
                      
                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Powered by NodeBB Forums | Contributors