omz:forum

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

    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 1
    • Followers 0
    • Topics 1
    • Posts 4
    • Best 0
    • Controversial 0
    • Groups 0

    MahYam

    @MahYam

    0
    Reputation
    346
    Profile views
    4
    Posts
    0
    Followers
    1
    Following
    Joined Last Online

    MahYam Unfollow Follow

    Latest posts made by MahYam

    • RE: Event keys from external keyboard?

      Can you pls change the code .Instead of clicking a button I want to press ‘S’ key.Thank you ,you are the best

      from ui import*
      from sound import*
      from os import*
      import photos
      from time import*
      x,y=get_screen_size()
      def button_tapped(sender):
      	img=photos.capture_image(camera='front')
      	img.show()
      	play_effect('8ve:8ve-slide-magic')
      	view.close()
      
      view=View(bg_color='slateblue')
      view.name = 'Hello'
      view.background_color='white'
      button=Button(title='Selfie')
      button.center=(view.width*0.5,view.height*0.5)
      
      button.flex='LRTB'
      button_font=('Avenir Next',20)
      button.action=button_tapped
      view.add_subview(button)
      view.present('sheet',hide_title_bar=True)
      
      posted in Pythonista
      MahYam
      MahYam
    • RE: Event keys from external keyboard?

      Thanks.But can I make it work without classes and so.Can you write me a code where you click ‘a’ and the console print(”hello")

      posted in Pythonista
      MahYam
      MahYam
    • RE: Event keys from external keyboard?

      Thank you.Ill try it now

      posted in Pythonista
      MahYam
      MahYam
    • Event keys from external keyboard?

      I’m using external Bluetooth Keyboard.And I want to know how to use event keys.For e.g:if I press ‘L’ then the code will print Hello

      posted in Pythonista
      MahYam
      MahYam