Thanks for repairing the code, will try to remember ;-)
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.
Latest posts made by PKHG222
-
RE: ctypes really usable?
-
ctypes really usable?
Grr forgotten to include code in this forum, so sorry
I got from github a file for sounds ...
starting with : from ctypes import c_void_p, c_char_p and some more ...My pythonista contains wel eg. numpy (new sinds?) but not ctypes ..
So either say, no not yet, otherwise how to get it inluded ;-)
Please,
I saw, that so much has been done with Pythonista
My last problem was to set a date onto a number of images ..
using thisimport photos as ph from PIL import Image as im n = ph.get_count() print 'size is',n #aanname datum photo is laatste!!! todolijst = [el for el in range(n-5, n-1)] print todolijst def doimg(n): img = ph.get_image(n) return img i15 = doimg(todolijst[-4]) print i15.size #import Sketch #print (ph.get_count()) nrim = ph.get_count() dateImg = ph.get_image(-1) #laatste moet het date plaatje zijn met Sketch te maken dimgsize = dateImg.size print 'imgsiz',dimgsize i15 = i15.resize(dimgsize) print i15.size res = im.blend(i15,dateImg,0.2) res.show() ph.save_image(res) ''' import photos as ph from PIL import Image as im m_plaatjes = 4 #ij changeME #Aanname: laatste plaatje bevat datum van Sketch gemaakt #Daarvoor m_plaatjes om met datum te blenden! n = ph.get_count() print 'size is',n #todolijst = [el for el in range(n-5, n-1)] #print todolijst def getImg(nr): img = ph.get_image(nr) return img #i15 = doimg(todolijst[-4]) def blendAllImageMetDatum(m_plaatjes,n): dateImg = getImg(n-1) dimgsize = dateImg.size welke = n - 2 for i in range(m_plaatjes): tmp = getImg(welke) tmp = tmp.resize(dimgsize) res = im.blend(tmp, dateImg,0.1) res.show() ph.save_image(res) welke -= 1 blendAllImageMetDatum(m_plaatjes,n) def overlay2img(n): t1 = getImg(n-1) t2 = getImg(n-2) res = im.blend(t1,t2,0.5) res.show() ph.save_image(res) #overlay2img(n)
and the gift to make a date picture: Sketch.py
-
Ipad 3 and IOS7
Will pythonista still work, if I upgrade my Ipad to IOS7?
Greets Peter -
RE: Mandelista, a Mandelbrot set explorer for Pythonista
Thanks, will try ...(later)
-
RE: Folder support?
isn't it that 'shellista' does what you want?
(a gist is found here ..., to lazy to find it here back for you, sorry) -
RE: Mandelista, a Mandelbrot set explorer for Pythonista
If time is a problem, in the foregoing century I replaced divisions by multiplications ...
Will check the difference on an Ipad 2 ;-)Does tmp = tmp + 1 be as efficient as tmp += 1 ???
And I will look at the most inner loop for ...
EDIT:
nothing changed I get 'white' vertical lines 'moving' from left to right,
how could that be avoided (repaired?) -
Scientific calculator
Maybe have a look here: http://www.daniweb.com/software-development/python/threads/277522/gui-scientific-calculator-homework
Maybe something nice to build with Pythonista?
Ideas of which classes one needs ... and then and building it 'testdriven' with unittest
(http://docs.python.org/2/library/unittest.html) ?! -
RE: Scientific calculator
Hi now an more or less working source can be found:
https://gist.github.com/4245408See a picture first?
http://petergragert.info/pythonista_by_pkhg/uploads/Peter/RPN_pythonista.jpg
Comments and found errors are welcome ;-)