omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. philippe
    3. Topics

    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.


    P
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 20
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by philippe

    • P

      Cannot launch shortcut
      Pythonista • • philippe

      1
      0
      Votes
      1
      Posts
      29
      Views

      No one has replied

    • P

      Trying to change label.text
      Pythonista • • philippe

      3
      0
      Votes
      3
      Posts
      152
      Views

      cvp

      @philippe as usual, not sure I correctly understand your request.
      Try this code. It uses the name attribute of the label to be accessed in the button action

      import ui v = ui.View() v.frame = (0,0,400,400) v.background_color = 'lightgray' l = ui.Label(name='label') l.frame = (10,10,380,32) l.background_color = 'white' l.text = 'initial' v.add_subview(l) b = ui.Button() b.frame = (10,50,380,32) b.background_color ='white' b.title ='change label text' def b_action(sender): b.superview['label'].text = 'new text' # b.superview is v, v['label'] refers thus to your label b.action = b_action v.add_subview(b) v.present('sheet')
    • P

      Textfield keyboard_type
      Pythonista • • philippe

      18
      0
      Votes
      18
      Posts
      561
      Views

      ccc

      Why do i haven’t the rights on MY phone ?

      The Apple Security Guideline for iOS devices limits the rights that apps have. This means there is less malware on these devices but that safety comes at the cost of constraining what system services are available to developers. Android offers more access but some would argue is less safe than iOS.

    • P

      About delegates
      Pythonista • • philippe

      8
      0
      Votes
      8
      Posts
      177
      Views

      cvp

      @philippe Don't forget that doc has already been a big work for the developer. And if you search via Google for Pythonista, UI, Custom Attributes, you will find some examples.

    • P

      problème d'importation
      Pythonista • • philippe

      13
      0
      Votes
      13
      Posts
      348
      Views

      cvp

      @philippe 👍