omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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.


    touch image and conect with ssh, help

    Pythonista
    3
    7
    4786
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • rustywild245
      rustywild245 last edited by

      i'm new in python.

      i would like to make that:
      http://omz-software.com/pythonista/forums/discussion/188/simple-alarm-device-home-automation-using-a-raspberry-pi-and-pythonista-on-the-ipad/p1

      i have the code to connect with paramiko to my linux server, but i don't know how to put the picture in background and start the commands when a touch it in a place of the screen.

      Someone can help me?

      1 Reply Last reply Reply Quote 0
      • rustywild245
        rustywild245 last edited by

        nobody?

        1 Reply Last reply Reply Quote 0
        • ccc
          ccc last edited by

          Hi Rusty,

          http://omz-software.com/pythonista/forums/discussion/244/question-about-photos-get_image should get you an image to be your background image.

          Now look at the "Piano" sample app to understand how to know if a user touch falls inside the frame of a graphical object.

          1 Reply Last reply Reply Quote 0
          • rustywild245
            rustywild245 last edited by

            i don't understand. I have the image save in phytonista.

            only write that:

            from scene import *
            import Image
            img = Image.open('nameofimagesaved').convert('RGBA')

            And don't do nothing
            What is my error?

            1 Reply Last reply Reply Quote 0
            • Dalorbi39
              Dalorbi39 last edited by

              After your code type img.show()

              1 Reply Last reply Reply Quote 0
              • rustywild245
                rustywild245 last edited by

                thanx!!! Dalorbi .
                now need scale to all screen too

                1 Reply Last reply Reply Quote 0
                • rustywild245
                  rustywild245 last edited by

                  no work fine. I start again.
                  i create a new script based on "basic Scene"

                  when i put img = ... inside setup(), the screen stay black, if put in draw() is the same

                  if put the img... inside the class but out of any functions, start with the image but turn black again

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Powered by NodeBB Forums | Contributors