omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. coomlata1

    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.


    • Profile
    • Following 0
    • Followers 0
    • Topics 7
    • Posts 31
    • Best 4
    • Controversial 0
    • Groups 0

    coomlata1

    @coomlata1

    5
    Reputation
    1191
    Profile views
    31
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    coomlata1 Unfollow Follow

    Best posts made by coomlata1

    • RE: Automatic .py-script from .pyui?

      @Treenjood

      I wrote a script that converts the pyui attributes into text for copying into a py file as code. I will take a bit of manipulation to convert over some of the attributes, but it should help get you started. The code is available here.

      posted in Pythonista
      coomlata1
      coomlata1
    • RE: [Share Code] File Template to automatically add an header comment block

      Added this script to my GitHub repository. It extends the capabilities of the @lukaskollmer script and provides support for editing existing code header comments in scripts. Suggestions and improvements are always welcome.

      posted in Pythonista
      coomlata1
      coomlata1
    • RE: UI Orientation Issues...Staying locked

      The first line in my imports was:

      'from future import(absolute_import, division, print_function, unicode_literals)'

      After removing that line, the orientation worked as expected and stayed locked in portrait mode. That line was put in early last year to aid in being forward compatible with Python 3 changes. The script was console based at that time with no ui.

      Thanks again for your comments...great forum.

      posted in Pythonista
      coomlata1
      coomlata1
    • RE: UI Orientation Issues...Staying locked

      The last 2 lines were a copy paste error. I copied the exact code to a blank script and ran it. The orientation is still not locked. I am using an iPhone 6+. I tried hard coding the frame size ...self.frame = (0, 0, 414, 736), but that didn't work either. My next thought would be to create a pyui file and load it with ui.load_view(). I read your comment about not needing a class for this. Maybe that would make a difference. Obviously I've got some things to learn. Thanks for all your input...much appreciated.

      posted in Pythonista
      coomlata1
      coomlata1

    Latest posts made by coomlata1

    • RE: Heic photo file issues in iOS11

      @JonB...Thanks much for the useful information. I’ll follow up on your suggestions and see where Objective C and PHImageManager leads me. Hopefully I will have some useful code to present in the near future.

      posted in Pythonista
      coomlata1
      coomlata1
    • RE: Heic photo file issues in iOS11

      @ JonB...Thanks for the response. I'm importing image, imagefont, and imagedraw from PIL and using them to open, resize, reorient if necessary, and then stamp GPS data to bottom of photo before copying it to a folder in dropbox. User has the option to retain the metadata in the Dropbox copy. Full code is here.

      I can get the metadata from the heic photo without problems, but PIL chokes on the photo during the opening and resizing, so I'm bypassing any that exist in the camera roll when I run the script.

      As I have thought about this more, I would prefer to keep the camera roll photos in heic format, rather than converting to jpeg, due to the more efficient storage capabilities. I imagine that PIL or Pillow will be updated to accommodate heic at some point in the future.

      posted in Pythonista
      coomlata1
      coomlata1
    • Heic photo file issues in iOS11

      With the introduction of iOS11, photos on the iPhone camera roll are stored in .heic format rather than jpg. Anyone have any thoughts on:

      1. How to retrieve metadata from the .heic photo files using pythonista
      2. How to convert said files from .heic to jpg format using pythonista

      You can set the iPhone camera to store pics in jpeg format in iOS11 by selecting 'Camera' in settings, selecting 'Format', and changing the setting from 'High Efficiency' to 'Most Compatible'. Downside to this is the larger storage size using jpeg and video quality will suffer.

      I would prefer to use the heic format, but most third party modules that work with images don't yet support heic.

      posted in Pythonista
      coomlata1
      coomlata1
    • RE: set values for picker.date ?

      Try this.

      posted in Pythonista
      coomlata1
      coomlata1
    • RE: Automatic .py-script from .pyui?

      @Treenjood

      I wrote a script that converts the pyui attributes into text for copying into a py file as code. I will take a bit of manipulation to convert over some of the attributes, but it should help get you started. The code is available here.

      posted in Pythonista
      coomlata1
      coomlata1
    • RE: Sync files with Dropbox

      @markhamilton1
      Set up the app in dropbox as per your instructions. When I run the Sycronator script I get an error: 'FileMetaData object has no attribute 'content_hash'. I am using the app store version of Pythonista 2.11. Is the script designed to run in Pythonista 3? What directory does the script belong in, it's own, or the Pythonista root directory? I assume the DropboxSetup script goes in the site-packages folder where it can be imported by other scripts that need Dropbox access.

      posted in Pythonista
      coomlata1
      coomlata1
    • RE: [Share Code] File Template to automatically add an header comment block

      Added this script to my GitHub repository. It extends the capabilities of the @lukaskollmer script and provides support for editing existing code header comments in scripts. Suggestions and improvements are always welcome.

      posted in Pythonista
      coomlata1
      coomlata1
    • RE: I made GUI Helper

      @nekotaroneko Thank you for the information. I have updated my script acknowledgements to reflect this.

      posted in Pythonista
      coomlata1
      coomlata1
    • RE: I made GUI Helper

      I have posted a script on my GitHub repository that expands the use of the GUI_Helper.py file. It is available here. The script uses the excellent file picker code in GUI_Helper.py to browse and select a pyui file in the Pythonista documents directory, and then returns a text file of the attributes of the view and subviews in the selected pyui file for copying into the code of a .py file. The text is displayed in the Pythonista console and copied to the clipboard. This allows for an easy transition from two seperate files into a single .py file when using a ui.

      posted in Pythonista
      coomlata1
      coomlata1
    • RE: [Tip] ui.Rect, if you are not using it for ui you should

      to @jmv38...How, specifically in code, did you replace super() in @Phuket2 code, to get this to work in Pythonista 2.x.

      posted in Pythonista
      coomlata1
      coomlata1