omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. zencuke

    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.


    • Profile
    • Following 0
    • Followers 0
    • Topics 15
    • Posts 141
    • Best 3
    • Controversial 0
    • Groups 0

    zencuke

    @zencuke

    3
    Reputation
    2417
    Profile views
    141
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    zencuke Unfollow Follow

    Best posts made by zencuke

    • RE: What's with canvas in Pythonista 3.

      @omz Thank you. That will be helpful. I experimented with several gestures but didn't hit on that one. I kept trying to pull it down by grabbing the top edge. Are the supported gestures documented anywhere? There are a few documented in the "Using Pythonista" section. I sometimes have this paranoid feeling that everyone else gets much more from Pythonista because they know all these cool features I never heard of. I need a 4 year old to beat on my iPhone. They try everything and seem to find new gestures faster than anyone else.

      BTW: I haven't told you this lately but Pythonista is the absolutely the coolest app I have ever seen. I tell everyone who will listen how great it is. My next project is to sell my kids on it who are both learning python in other contexts. And the best part is you keep adding cool new features. I was glad that I was finally able to give you a little money by getting Pythonista 3. I would have happily paid ten times that amount.

      posted in Pythonista
      zencuke
      zencuke
    • RE: Bug list for beta release 160037

      @Webmaster4o: Intentional or not I'm having difficulty understanding the value of this. The tiny view of the file on the right adds no useful functionality to the UI. It just takes away functionality from the file list window. The iPhone screen is small as it is. Squeezing it even more is a pain, especially for no benefit. It may mean something on the iPad but it looks like a bug on the iPhone. It is bad enough on the iPhone 6 plus. It must be even worse on smaller iPhones like the regular iPhone 6. The edit window gets a whole screen. The console and doc screens get to be full width but for some reason the file list has to be narrower? With no useful functionality in exchange? Makes no sense.

      posted in Pythonista
      zencuke
      zencuke
    • Is it possible to dismiss the textfield keyboard?

      I set up a text field with the gui design tool and then add keyboard_type = KEYBOARD_NUMBER_PAD after it is loaded. When the user selects the field the keyboard pops up right on schedule. How do I make it go away? I've found callbacks in the doc that get called when the keyboard frame changes but can't find anything that suggests why it would change.

      posted in Pythonista
      zencuke
      zencuke

    Latest posts made by zencuke

    • RE: Beta 2.1.1 expires in 13 hours.

      Sorry about the typo. I meant 2.1.1.

      posted in Pythonista
      zencuke
      zencuke
    • Beta 2.1.1 expires in 13 hours.

      TestFlight says Beta 2.1.1 will expire n 13 hours. Should. Be concerned?

      posted in Pythonista
      zencuke
      zencuke
    • RE: What's with canvas in Pythonista 3.

      @omz Works for me. ;-) The nice thing about Pythonista is that I have so many choices. Thanks for that.

      posted in Pythonista
      zencuke
      zencuke
    • RE: What's with canvas in Pythonista 3.

      @omz I'm happy with that. I guessed as much when so few people responded. I was already looking for other examples. The ability to save to an image file would be useful.

      I figured you would want to know about it. If it doesn't work you should probably either fix it or delete it. I'm not invested and am already switching. As an interim step you could take it out of the documentation or mark it officially deprecated and unsupported. That would have saved me time. I haven.t done much testing but I don't think canvas works at all in Python 2.7. I suspect that it actually works at some level (there are no error messages) but that you can't see it because there is a problem displaying the canvas layer. Simple canvas tests work in 3.5 but there is the text problem @JonB found.

      I just want to look at some very simple geometry. Right now I want to look at some polygons my software generates. Looking at the drawing is the point. Think of it as a viewer displaying artwork. Drop shadows and the like would degrade the "view the artwork" experience. In the bad old days of DOS I would just write pixels directly into the frame buffer. I spend months drawing Mandelbrot sets and other fractals one pixel at a time, not even vectors, directly into VGA memory. When I needed vectors I invented the Bresenham without realizing it needed inventing. Before that I wrote a graphics package on an embedded platform driving a fancy spectrometer. The package drove a stepper motor driven plotter. Again I had direct control of pixels. There was no OS to get in the way.

      Windows is great with sophisticated multi-threaded multimedia type stuff but the overhead to write a program to just display a simple drawing is staggering. I miss having access to the graphic card frame buffer. Fortunately in python you solve that for me. ;-) I just need to extract the minimal functionality I need from the massive documentation and then figure out how to get it on the display in all my different platforms.

      Thanks

      I really should try to do it in as portable way as I can to ease my multi platform problem. That probably means doing the core work in pillow images (ui is obviously custom) with a simple platform specific wrapper to display the result. On Windows and Mac I'm currently using Processing in python mode which is its own custom world. It has its own non standard graphics environment and probably doesn't support pillow. Processing will never be standard python so I'll probably move my desktop apps away from Processing to direct Python scripts that use Tk or Qt for portability but stick with pillow for the portable core.

      posted in Pythonista
      zencuke
      zencuke
    • RE: What's with canvas in Pythonista 3.

      @Phuket2 I just changed xrange to range in my version and the clock demo worked for me. I don't think this is a Pythonista bug. The demo needs to change if it wants to be portable between python versions. xrange is in the list of P3 backwards incompatibilities. The translate tool would probably have fixed this. There is only one range function in p3 called range which basically does what the old P2 xrange did and there is no longer anything called xrange. xrange was a speedup but even in p2.7 between range(12) and xrange(12) the difference would be hard to measure. It was really written for very big ranges.

      It is interestingly difficult to say the change briefly and clearly. "xrange is still there but it is called range and xrange is gone." "Range is gone but it has been replace by xrange which is now called range."

      posted in Pythonista
      zencuke
      zencuke
    • RE: What's with canvas in Pythonista 3.

      OK new information. I mislead people because I screwed up changing the python version. I was hitting the version icon in the console not realizing that only changed the version running in the console. When I used the correct methodology and changed the default versions in "file viewer settings" to 3.5 canvas code demo works. On my system the failure "silent (no errors) missing canvas output" only happens in 2.7. There are probably other issues though. After I run the canvas red circle example (in 3.5) I can't clear the console with the clear button. Actually (more experimentation) I can clear normal console text output but the canvas layer stays. Text output is masked by content in canvas layer. Wait... Typing canvas.clear() in the console does clear it. Maybe that's actually a feature and I just missed in the documentation?

      The clock demo bug @Phuket2 reported also fails when I correctly set the version to 3.5.

      Could someone try the canvas demo in 2.7 please to see if that failure is repeatable.

      posted in Pythonista
      zencuke
      zencuke
    • RE: What's with canvas in Pythonista 3.

      OK now that I read one days worth of response I want to summarize.

      1. So far 151 people have viewed this topic. Not many responded which makes me think almost no one uses canvas.
      2. No one reports having the same problem.
      3. @JonB Doesn't have my problem but had a problem with canvas text functions in py3. He posted a workaround.
      4. ccc filed a bug against @JonB 's canvas text issue.
      5. @Phuket2 has a problem with the "clock face demo" He seems to think it uses canvas but the version I have does not use canvas and it works for me. I'm not sure his problem is related to mine. Maybe he has a different version of the clock demo?
      posted in Pythonista
      zencuke
      zencuke
    • RE: What's with canvas in Pythonista 3.

      @omz Thank you. That will be helpful. I experimented with several gestures but didn't hit on that one. I kept trying to pull it down by grabbing the top edge. Are the supported gestures documented anywhere? There are a few documented in the "Using Pythonista" section. I sometimes have this paranoid feeling that everyone else gets much more from Pythonista because they know all these cool features I never heard of. I need a 4 year old to beat on my iPhone. They try everything and seem to find new gestures faster than anyone else.

      BTW: I haven't told you this lately but Pythonista is the absolutely the coolest app I have ever seen. I tell everyone who will listen how great it is. My next project is to sell my kids on it who are both learning python in other contexts. And the best part is you keep adding cool new features. I was glad that I was finally able to give you a little money by getting Pythonista 3. I would have happily paid ten times that amount.

      posted in Pythonista
      zencuke
      zencuke
    • RE: What's with canvas in Pythonista 3.

      @Phuket2 Now I'm confused. I couldn't find anything in the example directory that uses canvas. Maybe that is why it is buggy. Everything uses scene which I guess I should do as well. Canvas just looked simpler. Also I thought clock.py was removed from the release. After reading your post I finally found a copy in the "share with original Pythonista" area but that copy works fine for me. It also doesn't use canvas. It uses scene like everything else.

      posted in Pythonista
      zencuke
      zencuke
    • RE: What's with canvas in Pythonista 3.

      @JonB I forgot to mention that I tried your slightly simpler example and it didn't work.

      Side note: I wish I could figure out how to make the key pad go away. I understand that iPad users get a keypad icon but the iPhone "doesn't have enough space" for that button.

      posted in Pythonista
      zencuke
      zencuke