What happens to files?
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.
Posts made by polymerchm
-
Beta expired
@omz Pythonista 3 beta has expired. When do we anticipate an update?
-
RE: App was accepted in iTunes store
@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. -
RE: Xcode Template for Pythonista
@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.
-
RE: Xcode Template for Pythonista
Trying to run my app via xcode and the current template. How do you force it to run the Python 3 interpretor?
-
RE: Xcode Template for Pythonista
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.
-
RE: Sound and ui modules not playing well together
@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.
-
RE: Sound and ui modules not playing well together
@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?
-
RE: Sound and ui modules not playing well together
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.
-
RE: Sound and ui modules not playing well together
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? -
Sound and ui modules not playing well together
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.
-
WebView newbie
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?
-
RE: Listing all methods in an ObjCClass
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.
-
RE: App was accepted in iTunes store
Is an app possible yet from Pythonista 3? Would save me a lot of time converting it to swift.
-
Listing all methods in an ObjCClass
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.
-
Forum navigation
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.
-
RE: Preventing app from being changed
-
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.
-
the Pyui files are text files. Just not readily readable. I suggest using a git repository and the StaSH shell.
-
???
-
-
RE: StaSH broken in 3.0 beta
Just came back on the beta scene. And updated Stash. Now it works fine. Thx.
-
StaSH broken in 3.0 beta
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?