omz:forum

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

    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 1
    • Posts 4
    • Best 0
    • Controversial 0
    • Groups 0

    spinmaster

    @spinmaster

    0
    Reputation
    670
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    spinmaster Unfollow Follow

    Latest posts made by spinmaster

    • RE: Editorial markdown app equivalent for mac osx

      Many of us have been hoping that Editorial would get ported to Mac - I certainly would buy it.

      Like you, I also bought Ulysses mainly on the hype surrounding it. I certainly think its a quality app, but in practice I've found Editorial to be more flexible / practical over the last year.

      Unfortunately, it seems that Editorial hasn't been getting lots of love recently from omz. Perhaps he's busy with other things - or maybe the next big version is about to drop - I don't know.

      But the two big things on my wishlist are: (a) integrated iCloud Drive sync, and (b) Mac OSX port.

      posted in Editorial
      spinmaster
      spinmaster
    • RE: I would back a Kickstarted Mac version of Editorial

      I'd pay $19 for a Mac version if it included some updates to both iOS / Mac versions: full iCloud Drive sync and more syntax types (like ReStructured Text, Groff, etc)

      Overall I love Editorial but its a pain to always be tied to tablet/phone.

      posted in Editorial
      spinmaster
      spinmaster
    • RE: Understanding UI redraw / animation

      @omz said:

      ui.delay expects a callable object, typically a function, but you're passing the result of a function call (which is None in this case because colorIt doesn't return anything).

      Many thanks OMZ. I understand.

      I suppose to other approach is to refactor the code so that the called function has no parameters - but for this simple example partial seems easier.

      posted in Pythonista
      spinmaster
      spinmaster
    • Understanding UI redraw / animation

      Hi All.

      I'm loving the new 2.0 update.

      I'm trying to get my head around how the UI module handles redraws / screen updates.

      I'm trying to do a simple test where a series of labels blink in series (kind of like a row of LEDs, but text labels instead). I've found the UI.animate and UI.delay functions . However, I get an error when placing UI.delay in a loop.

      It's calls the function correctly the first call, but on subsequent it gives me error of "Type Error: Expected Callable Function"

      Here is code...can anyone illuminate problem?

      import ui
      
      def colorIt(lbl):
      	lbl.background_color='#ff0000'
      
      def buttonClick(sender):
      	for item in llst:
      		print item
      		ui.delay(colorIt(item),1.0)
      	
      v = ui.load_view()
      
      lbl1=v['label1']
      lbl2=v['label2']
      lbl3=v['label3']
      llst=[lbl1,lbl2,lbl3]
      
      v.present('sheet')
      
      posted in Pythonista
      spinmaster
      spinmaster