omz:forum

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

    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 3
    • Posts 9
    • Best 0
    • Controversial 0
    • Groups 0

    steffen84

    @steffen84

    0
    Reputation
    459
    Profile views
    9
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    steffen84 Unfollow Follow

    Latest posts made by steffen84

    • Problem with console.write_link()

      Hi all,

      In Pythonista 1.4 I have problems with console.write_link(). Sometimes it doesn't use the previously set font and color. Sometimes, when mixed with print(), the link is printed before a previously printed text.

      Can someone confirm this? Is there a solution?

      iOS 7.0.4 on iphone4

      posted in Pythonista
      steffen84
      steffen84
    • RE: Problem with console.write_link()

      Seems to be a threading problem. When I add

      <code>time.sleep(0.01)</code>

      before write_link() the problem doesn't appear.

      posted in Pythonista
      steffen84
      steffen84
    • RE: Problem with console.write_link()

      <code>import console

      print('Text before link')<br>
      console.write_link('http://www.google.com', 'Google')<br>
      print(' Text after link')
      </code>

      Normally it works the first time when this script is started. When I hit clear and start the script again, the link appears before the 'Text before link'.

      posted in Pythonista
      steffen84
      steffen84
    • KeyboardInterrupt exception

      Hi all,

      In the following code input_alert() never throws an exception. From the documentation I would have expected that a KeyboardInterrupt exception is thrown when the dialog is canceled.

      <pre>import console
      console.clear()
      try:
      console.input_alert('test')
      except:
      print('exception')</pre>

      Is this an error?

      Steffen

      posted in Pythonista
      steffen84
      steffen84
    • RE: KeyboardInterrupt exception

      Solved in Pythonista 1.4

      posted in Pythonista
      steffen84
      steffen84
    • Some Thoughts on the Console Module

      With the console module and its ability to print links, it is very easy to create interactive text based apps that work very well on a touch screen. The links always call the same script but with different parameters.

      Here are some ideas that would further improve the usage of the console module:

      1. Hide the console controls (input and the bar at the top). Or at least programatically hide the keyboard.
      2. Define a custom popup menu for links (print_link() with an optional link list that are shown in a popup menu when the link is hold).
      3. Get the device's orientation
      4. Keep imported modules loaded
      5. More input options for numeric or date/time values. Maybe even custom selections.
      6. Images with links.
      7. Control the scroll position - mainly scroll to top after printing.
      8. Suppress update of the console output until all text has been printed. Especially useful in combination with 7.

      It would be great if some of these ideas could be realized in the next version of pythonista.

      Steffen

      posted in Pythonista
      steffen84
      steffen84
    • RE: KeyboardInterrupt exception

      Is it possible to enable a debug mode or some logging to further investigate this issue?

      Or is the code of the console module publicly available?

      posted in Pythonista
      steffen84
      steffen84
    • RE: KeyboardInterrupt exception

      That is strange. My model is MC605DN/A. The iOS version is the same. But I cannot imaging that this is hardware dependend.

      Other exceptions (e.g. from sqlite) work as expected.

      posted in Pythonista
      steffen84
      steffen84
    • RE: KeyboardInterrupt exception

      iOS 6.1.3 on iPhone4

      posted in Pythonista
      steffen84
      steffen84