• polymerchm

    What happens to files?

    posted in Pythonista read more
  • polymerchm

    @omz Pythonista 3 beta has expired. When do we anticipate an update?

    posted in Pythonista read more
  • polymerchm

    @tlinnet @omz Did your app use any Python 3.5 dependent code? I need 3.5 as the default interpretor? Even with #!python3 on first line, print (version)says its 2.7 when run in the xcode ios simulator.

    posted in Pythonista read more
  • polymerchm

    @omz Based on my experiments, am I correct in assuming that the template only has the 2.7 interpretor? Any hope the the 3.5/3.6 template will be forthcoming? I am learning swift just in case.

    posted in Pythonista read more
  • polymerchm

    Trying to run my app via xcode and the current template. How do you force it to run the Python 3 interpretor?

    posted in Pythonista read more
  • polymerchm

    Not that I have tried it, but you might try it as an objective-c project since I believe that's how OMZ wrote pytonista.

    posted in Pythonista read more
  • polymerchm

    @omz Worked as advertised. I always forget that trick. @JonB: Will try that in other situations. I guess I need to pay careful attention to the autocomplete for other tidbits. Thanks.

    posted in Pythonista read more
  • polymerchm

    @JonB. YES!!!!! That's what I hoped was out there. WIll try it tomorrow when Im actually awake and functional!!! Where do you find these things?

    posted in Pythonista read more
  • polymerchm

    def playProgression(button):            
        if os.path.exists('waves'):
            if not model._InstrumentOctave:
                return
            else:
                baseOctave = model._InstrumentOctave
            strings = model._InstrumentTuning
            
            for chordNumber in range(len(model._ProgFingerings))
     # here is where I inserted code to trigger a redraw of a custom view.  
      # the redraw happens when this loop finished
                thisFingering = model._ProgFingeringsPointers[chordNumber]
                cc = model._ProgFingerings[chordNumber][thisFingering]
                frets = cc[2]
                dead_notes = [item[3] == 'X' for item in cc[0]]
                tones = []
                for fret,string,dead_note in zip(frets,strings,dead_notes):
                    if  dead_note:
                        continue
                    octave,tone = divmod(string + fret,12)
                    tones.append((tone,octave+baseOctave))
                for tone,octave in tones:
                    sound.play_effect(getWaveName(tone,octave))
                    time.sleep(model.play_arpSpeed*0.25)
                time.sleep(3*model.play_arpSpeed) # rest between chords
    # the "chords" play just fine as well as the final sleeps between chords.
       
    

    posted in Pythonista read more
  • polymerchm

    Reading the IOS bibles, seems I need to have access to the audioPlayeDidFinishPlaying:successfully: method in the delegate. Any chance the delegate is a hidden "feature" of sound or one I can "hack" into?

    posted in Pythonista read more
  • polymerchm

    I am trying to trigger a custom view to redraw, then to play a series of tones (a chord), then retrigger the display, rinse and repeat.

    The chords play in sequence, but the display is locked until the last of the tones of the last chord is finish playing. Then it updates to the last of the displays that should have shown. Seem very asynchronous. Is there any simple way (objectiveC is consider semi-simple) to tell when a sound is finished playing.

    posted in Pythonista read more
  • polymerchm

    Any guidance on how to get a "hyperlink" into a webview that interact with the script that generated it. OR, can you add a "close' button to the webview?

    posted in Pythonista read more
  • polymerchm

    They're not real happy with Pythonista 3, or the beta. I think the underlying implementation of .startswith() is re based and not real happy with bytestrings.

    posted in Pythonista read more
  • polymerchm

    Is an app possible yet from Pythonista 3? Would save me a lot of time converting it to swift.

    posted in Pythonista read more
  • polymerchm

    Somewhere, one of the Objc_util gurus posted a script to display all methods of a ObjectiveC class in a TextView. I have, of course, lost it.

    posted in Pythonista read more
  • polymerchm

    I am using the forum app so no back button.

    posted in Pythonista read more
  • polymerchm

    Is there any simple way, once you have done a search and then drill down on a particular found article, to get back to the search results? I always seem to end up a the main screen.

    posted in Pythonista read more
  • polymerchm

    1. I suppose you could "zip" the source code (both the py and pyui, the later is just text). Then write a run script that unzips them and executes the source.

    2. the Pyui files are text files. Just not readily readable. I suggest using a git repository and the StaSH shell.

    3. ???

    posted in Pythonista read more
  • polymerchm

    Just came back on the beta scene. And updated Stash. Now it works fine. Thx.

    posted in Pythonista read more
  • polymerchm

    Install newest Pythonista 3 beta. Tried to launch stash

    Traceback (most recent call last):
      File "/private/var/mobile/Containers/Shared/AppGroup/38854C0E-40E2-4F48-A845-2E877292183C/Pythonista3/Documents/launch_stash.py", line 28, in <module>
        from stash import stash
      File "/private/var/mobile/Containers/Shared/AppGroup/38854C0E-40E2-4F48-A845-2E877292183C/Pythonista3/Documents/site-packages/stash/stash.py", line 20, in <module>
        from system.shcommon import IN_PYTHONISTA, ON_IPAD
      File "/private/var/mobile/Containers/Shared/AppGroup/38854C0E-40E2-4F48-A845-2E877292183C/Pythonista3/Documents/site-packages/stash/system/shcommon.py", line 42, in <module>
        import _outputcapture
    ImportError: No module named _outputcapture
    

    Simple solution?

    posted in Pythonista read more
Internal error.

Oops! Looks like something went wrong!