• tileyon

    The Pythonista app template presents the console output by default. UI elements, if included in your code, are placed atop that console within the presentation structure (sheet, full_screen, popover etc...). The "run" and "clear" buttons are included in the console and may be disabled by following instructions included in the template. You do need a Mac to use the template which is an Apple requirement and not a decision of @OMZ the Pythonista developer. That console does not seem to show in Xcode's iOS emulator but comes on when you test or install your app in an iOS device. You will have to implement your own Command Line Interface (CLI). They usually consist of multiple choices presented to the user to pick from by inputting a corresponding number.

    posted in Pythonista read more
  • tileyon

    @JonB excellent work!

    posted in Pythonista read more
  • tileyon

    @JonB I used your 'sidebar.py' to resurrect 'editmenu'. The extended side bar 'sidebar2.py' at:
    https://gist.github.com/9ea9e4c36e1df21177ca15c743d135bf
    is functionally and visually identical to 'editmenu.py' except that it no longer calls 'Find and Replace'. I also put the results from 'finddocstring' into a 'popover' since 'editor._set_toolbar(v)' has been removed. 'INDENTSTR' is no longer defined so I set it to four spaces. For those who prefer the 'real TAB' 'Indent Selection' can be easily modified to accommodate the 'Tab' character. You really investigate the Pythonista ui to its deepest end and teach me a lot with very little effort on my part. Thank you very much.

    posted in Pythonista read more
  • tileyon

    @JonB Thank you for the information. I installed @dgelessus routines and they are excellent. The "faultlog" reveals that I was not calling overlay from the main thread which as was not. At least I think that is what the following message indicates:
    NSInternalInconsistencyException: Only run on the main thread!
    By the way "Calculator" shows as expected. However the buttons were not functional also as expected, and the motion was disabled.

    posted in Pythonista read more
  • tileyon

    @JonB I tried to integrate your "Overlay" class in one of my old "sheet" view script but it crashes Pythonista every time. However, if I show "Family Resemblance" in the same code right before l present my sheet both appear on the screen although the moving capabilities of "Family Resemblance" do not work anymore. I will try it with a simple vintage script like calculator and let you know what happened.

    posted in Pythonista read more
  • tileyon

    @abcabc Yes I do get a syntax error in "animate.py" at line 77 that I reproduce below:

    def init(self, *animations, completion=None):

    JonB's code works perfectly if USE_ANIMATE is false. Otherwise, I get the same "line 77 error". Thank you for the code sample, its views are very nice indeed.

    posted in Pythonista read more
  • tileyon

    @abcabc Tank you very much for your tip. It was very informative. The panel view reveals itself to be useful to host "editmenu"' s routine. I moved to python about a year ago from C++ and delphi. I was looking for a language that could easily be ported in source code to all five major platforms (MS Windows, OSX, iOS, Android, Linux). I developed the C.O.D.E. (Code Once Deploy Everywhere) concept. Using Pythonista on IOS and Kivy on the other platforms I finally developed an adaptable structure that could be used in all these platforms without modifying the Python scripts, not even the ui scripts. However, I do not go into learning the details for the ui in each environment since they can be changed by the dev at anytime. This is why your reply was so valuable.

    posted in Pythonista read more
  • tileyon

    @JonB I am sorry if this post seems rude. I have been hanging out in this forum for less than three weeks. I am still learning my way around. I did not realize I could tag your handle and I am still not sure if you will be notify if I do so.

    posted in Pythonista read more
  • tileyon

    @JonB ui2 reports an error at animate.py line 77

    posted in Pythonista read more
  • tileyon

    The following is a comment on a reply you posted to one of my recent posts titled "Pythonista 2.1 problem". Your reply ended with the line below:

    "A few other things changed in 1.5 to 2.x but mostly old scripts can be fixed in a few lines..."

    It probably is that easy for you. Therefore, I have a simple request. Please update "editmenu" to work properly with Pythonista 2.1. Maybe You could use your excellent "uicomponents" to do so. By the way, a few of those ui routines do not work either in version 2.1. I also downloaded "objc_hacks" and it shows wonderful possibilities in version 2.1. Inserting ui elements in the interface is a fantastic feat. You could do marvels with the "find and replace" module in "editmenu" by using it. I do not think that "find and replace" in the new Pythonista editor is better than yours. Visually and functionally "editmenu"'s "find and replace" is way more appealing and functional than Pythonista's. Using two buttons for "indent and unindent" blocks is much faster and more convenient than the long press on a single button. In one of your recent post you also stated that you will update "editmenu" using overlays. Thank you very much for your insightful reply and your outstanding published work. Hoping that you will take my request into consideration, I salute you.

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!