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.


    What’s an anonymous label?

    Pythonista
    4
    5
    2088
    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.
    • Drizzel
      Drizzel last edited by Drizzel

      Since I have absolutely no clue how I caused this error, the following will be rather unspecific, my apologies

      So I have a very modified table view. Sometimes, when I remove some cell with the delete_rows() function, and then scroll down to see cells that weren’t displayed when deleting, some of these newly presented cells are totally blank. They simply are a white, empty area. I can tap them normally, and the proper functions are called. When I long press them (thanks to @mikael and his gestures script) I get the following error:

      Traceback (most recent call last):
        File "/private/var/mobile/Containers/Shared/AppGroup/D1D9102B-9BBB-4003-A835-39FDFDA39AB1/Pythonista3/Documents/v9/play_view.py", line 50, in skip_action
          self.player.finished_handler()
        File "/private/var/mobile/Containers/Shared/AppGroup/D1D9102B-9BBB-4003-A835-39FDFDA39AB1/Pythonista3/Documents/v9/audio_manager.py", line 72, in finished_handler
          section = prev_cell.section
      AttributeError: '_anonymous_label' object has no attribute 'section'
      

      So what is an _anonymous_label, and how did I cause this?

      I’m really sorry that I’m so unspecific, I simply have no idea how my (pretty long) code got to this

      mikael 1 Reply Last reply Reply Quote 0
      • mikael
        mikael @Drizzel last edited by

        @Drizzel, have not seen this before.

        How are you deleting the rows? Via the TableView method or updating the data source and reloading?

        Could you try to strip down (a copy of) your code to come up with a minimal example of the issue? This often leads you to the answer, and if not, will help us help you.

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

          @Drizzel

          @mikael said:

          Could you try to strip down (a copy of) your code

          Yes, at least to know how you define prev_cell. Is it a label?

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

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • Drizzel
              Drizzel last edited by

              @mikael said:

              Could you try to strip down (a copy of) your code

              Of course, no problem. It might take me one or two days, because I have exams coming up

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