omz:forum

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

    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 1
    • Followers 0
    • Topics 0
    • Posts 9
    • Best 1
    • Controversial 0
    • Groups 0

    struct_engineer

    @struct_engineer

    1
    Reputation
    775
    Profile views
    9
    Posts
    0
    Followers
    1
    Following
    Joined Last Online
    Website mathpax.com

    struct_engineer Unfollow Follow

    Best posts made by struct_engineer

    • RE: Timed automation in IOS 14

      Edit attempt on September 20 2020 -- added link -- added bold font initials

      Link to my PDF showing my Timed Automation Shortcut Using Pythonista (TASUP).

      PDF link

      Page 4 in the PDF shows the failure notice.

      As Mikael states, the manual use of my shortcut did work; the problem is with timed automation.

      posted in Pythonista
      struct_engineer
      struct_engineer

    Latest posts made by struct_engineer

    • RE: Sliders in pythonista

      Here's a screenshot from the App Store:

      App store shot
      (I edited this image size and resolution)

      I would pay a subscription price to get more frequent updates.

      posted in Pythonista
      struct_engineer
      struct_engineer
    • RE: Sliders in pythonista

      @ccc

      Just wondering what is the status of Pythonista development ?

      I've been around this forum for about 4 years -- I notice the app hasn't been updated since Feb 2020.

      I'm guessing there will be no further development.

      Thanks,
      Karl
      https://www.mathpax.com/

      posted in Pythonista
      struct_engineer
      struct_engineer
    • RE: Timed automation in IOS 14

      @mikael, see updated post.

      posted in Pythonista
      struct_engineer
      struct_engineer
    • RE: Timed automation in IOS 14

      Edit attempt on September 20 2020 -- added link -- added bold font initials

      Link to my PDF showing my Timed Automation Shortcut Using Pythonista (TASUP).

      PDF link

      Page 4 in the PDF shows the failure notice.

      As Mikael states, the manual use of my shortcut did work; the problem is with timed automation.

      posted in Pythonista
      struct_engineer
      struct_engineer
    • RE: Sliders in pythonista

      Thanks -- done.

      • augmented_slider.py
      • overlay_test.py
      posted in Pythonista
      struct_engineer
      struct_engineer
    • RE: Sliders in pythonista

      I’ve completed my new app for iPhone and iPad.

      • AISC Bolt Shear Capacity based on AISC 15th Edition
      • (American Institute of Steel Construction)

      Thanks to all.

      aisc-bolt-shear-capacity-pythonista

      posted in Pythonista
      struct_engineer
      struct_engineer
    • RE: Sliders in pythonista

      Here is the code gist:

      khoitsma/augmented_slider.py
      https://gist.github.com/khoitsma/3bd07918e41ad6384359432c1c9f199e

      posted in Pythonista
      struct_engineer
      struct_engineer
    • RE: Sliders in pythonista

      http://khoitsmahq.firstcloudit.com/images%2Fslider screenshot.jpeg

      https://www.mathpax.com/whats-on-the-pythonista-menu-yep-sliders/

      I built an app and am running this app on my iPad.

      Credit to:

      • [toggle the sliders]
        • mikaelho / pythonista – gestures
      • [sliders with labels]
        • tdamdouni / Pythonista
        • Pythonista / slider / SliderWithLabel_danrcook.py

      The video shows an app with 8 inputs — 2 integer, 4 float, 2 boolean. Numeric input is tedious — at best; slider input is easier and offers positive feedback. In this app, both approaches are used:

      Efficient sliders for user input
      Only clear text for user screenshots

      I enhanced the slider class to allow min values, floats, rounded floats, booleans. Rounded floats allow only multiples of say 0.5 [0.0, 0.5, 1.0, 1.5 ... ] or of 5 [0, 5, 10, 15 ...].

      posted in Pythonista
      struct_engineer
      struct_engineer
    • RE: Presenting view and console

      Using Overlays

      My first post to the forum.

      Using the Overlay class successfully — added the decorator to the attach function as was mentioned.

          @on_main_thread
      	def attach(self):
      		self.parent.addSubview_(self)
      

      In my demo file, I have a main image overlay (resizable) and two auxilary image overlays (resizable). Each of the overlays could have any kind of UI elements; just showing images for proof of concept.

      I have found that, for each overlay, the following statements must be in the order shown or else the overlay window will not resize.

          ooo=Overlay(name='abc', content=vvv, parent=AppWindows.root())
          ooo.content_view.border_width=2
          vvv.content_mode=ui.CONTENT_SCALE_ASPECT_FIT
      

      Here is my demo file; provide your own PNG files (foo.png and fooe.png).

      from overlay import Overlay, AppWindows
      from gestures import Gestures
      import ui
      
      if __name__=='__main__':
          
          iv0=ui.ImageView(frame=(0,0,300,300))
          iv0.image=ui.Image.named('test:Peppers')
          iv0.name='OMAIN▪️'
          
          iv1=ui.ImageView(frame=(0,0,200,200))
          iv1.image=ui.Image.named('foo.png')
          iv1.name='ICR▪️'
          iv1.alpha=1
          overlay1=Overlay(content=iv1,parent=AppWindows.root())
          overlay1.content_view.border_width=2
          iv1.border_width=1
          iv1.content_mode=ui.CONTENT_SCALE_ASPECT_FIT
          
          iv2=ui.ImageView(frame=(0,0,200,200))
          iv2.image=ui.Image.named('fooe.png')
          iv2.name='E▪️'
          iv2.alpha=1
          overlay2=Overlay(content=iv2,parent=AppWindows.root())
          overlay2.content_view.border_width=2
          iv2.border_width=1
          iv2.content_mode=ui.CONTENT_SCALE_ASPECT_FIT
          
          omain=Overlay(name='abc', content=iv0, parent=AppWindows.root())
          omain.content_view.border_width=2
          iv0.border_width=1
          iv0.content_mode=ui.CONTENT_SCALE_ASPECT_FIT
      
      posted in Pythonista
      struct_engineer
      struct_engineer