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.


    Cannot call UIButton.setMenu_() in Pythonista 3.4

    Pythonista
    2
    2
    48
    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.
    • indoxan
      indoxan last edited by indoxan

      Using UIButton.setMenu_() crashes.
      I noticed this problem when I'm using @mikael ui3 menu.py.

      It looks like:

      objc_button = self.button.objc_instance.button()
      objc_button.setMenu_(objc_menu)
      

      I also tried something like this:

      button = ObjCClass("UIButton").alloc().init()
      menu = ObjCClass("UIMenu").alloc().init()
      ...
      button.setMenu_(menu)
      

      But crashed as well.

      I remember there was no problem in Pythonista3.3, is there any solution?

      cvp 1 Reply Last reply Reply Quote 0
      • cvp
        cvp @indoxan last edited by cvp

        @indoxan I saw that you already have commented an issue in Github thus we have to wait for @mikael and/or @omz

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