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.
A few questions
-
Thanks in advance,
sorry,i didnt say it clearly,so edit again:by using code- how to not show keyboard when tapping in editor by using code?
- how to delete the file in the specific directory by using code?
- how to pause 1 second?
- how to use c language simple code?
- what is block comment?
- i want some math examples.
-
- you can always hide the keyboard, bottom right corner button next to 123 button. unless you are talking bluetooth kb, search forums, i think there is not a way to hide the extra row.
- you can use stash. or use the file browser, and click the edit button, which brings up some icons along the bottom like a trash icon.
-
import time
time.sleep(1.0)4. what do you want to do? this is python, not c! the beta version includes a `ctypes` module, but since there are no dynamic libraries, you can only access c functions from built in ios libraries. mostly this is experimental and not simple. you can do a lot in python with thr included modules. 5. do a google search for python math, or checkout the docs that come with the program. it includes some very helpful language tutorials and library references..
-
- Not sure what you mean - if you tap a text field (such as the editor) it brings up the on-screen keyboard. You can hide the keyboard again with the button in the bottom right corner (on iPad) or in the toolbar (on iPhone). Opening the file list also hides the keyboard.
- In the file list, go into edit mode, select the files you want to delete, and tap the delete button.
- In the
time
module there is asleep
function, if you really need it. Normally it's not very useful to "pause" the program though. - You don't. Apple doesn't allow apps to run native code, which means that you couldn't run a C compiler or the executable file it gives you. And nobody has written a C compiler targetting Python yet, let alone in Python itself. There's doesn't even seem to be a Python implementation of the C preprocessor.
- Python doesn't have real block comments. In most cases you can just use multiple single-line comments. There are also long (triple-quoted) string literals that can be used as "comments", but because they are really just strings they can't be used anywhere.
- Like
1 + 1
? "Math examples" can mean a lot, if you want to know something specific, you need to tell us what.
-
Much obliged. sorry,i didnt say it clearly,so edit again:by using code
- how to not show keyboard when tapping in editor by using code?
- how to delete the file in the specific directory by using code?
-
-
in editor? or in a textview?
in editor, i think it is not possible easily. you could show a ui, then end_editing on a textfield, ehich might make it go away... -
see http://stackoverflow.com/questions/6996603/how-do-i-delete-a-file-or-folder-in-python
You may want to usehome=os.path.expanduser(~/Documents)
if your script wants to delete something not in the ssme folder it is running.
-