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.


    The performance of button.name is kind of slow?

    Pythonista
    3
    61
    20812
    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.
    • ?
      A Former User last edited by A Former User

      I wrote a reader for ebooks, including the index of the book. I use Labels to show text and Buttons to show index, because I need to switch to the new chapter when user click the button.
      So I need to change the Label.text and Button.title when scrolling. But it is strange that looks like the performance of Button.title is not good. It shows white pieces when I scroll the bar.

      cvp 2 Replies Last reply Reply Quote 0
      • cvp
        cvp @Guest last edited by

        @lpl Are you sure you don't want to use button.title?

        ? 1 Reply Last reply Reply Quote 0
        • ?
          A Former User @cvp last edited by

          @cvp changed.

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

            @lpl and why do you want to change something in the book index?
            You could use a TableView for the index and never change something in it, scrolling is foreseen and select a line is like tapping a button.

            ? 1 Reply Last reply Reply Quote 0
            • ?
              A Former User last edited by

              https://m.youtube.com/watch?v=vqxlf4iJk20&feature=share

              1 Reply Last reply Reply Quote 0
              • ?
                A Former User @cvp last edited by A Former User

                @cvp Maybe the book is very big, then the TableView will be very big too? I can only use 13 Labels to display all the contents now.

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

                  @lpl yes, for the labels, but how much indexes?

                  ? 1 Reply Last reply Reply Quote 0
                  • ?
                    A Former User @cvp last edited by A Former User

                    @cvp 13 Buttons, too. The index may very big, too?

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

                      @lpl I have a TableView with 10000 lines, very quick. Don't forget that display lines is done only when needed

                      ? 1 Reply Last reply Reply Quote 0
                      • ?
                        A Former User @cvp last edited by A Former User

                        @cvp But there is another thing, I also want to display the manhwa imgs. So I have to use ImagView like Label in ebook reader. … And I can't make it with TableView, right? So I use the same way to display the index, ebook and emanhwa.

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

                          @lpl Not textview but TableView and you can display what you want, like images, in each line.

                          The covers of my 13000 ePubs

                          ? 2 Replies Last reply Reply Quote 0
                          • ?
                            A Former User @cvp last edited by

                            @cvp I remembered the reason why I didn't use TextView. I can't get the position of the scrollbar. So I use the Labels.

                            1 Reply Last reply Reply Quote 0
                            • ?
                              A Former User @cvp last edited by A Former User

                              @cvp But I need to display the full images on the screen which may have different sizes.

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

                                @lpl ok, but remember, I didn't say textview but TableView which is a scrollview thus you can get the position of the scroll bar

                                ? 3 Replies Last reply Reply Quote 0
                                • ?
                                  A Former User @cvp last edited by

                                  @cvp Sorry. I wrote another word. I understood that, but I'm not a native speaker so sometimes I may wrote the wrong word.

                                  1 Reply Last reply Reply Quote 0
                                  • ?
                                    A Former User @cvp last edited by

                                    @cvp So, since I use the same strategy in ebook and index. Why there are some white parts when I display the index, and ebook reader looks well?

                                    cvp 1 Reply Last reply Reply Quote 0
                                    • ?
                                      A Former User @cvp last edited by A Former User

                                      @cvp The code is open-source. But I have to say, I'm naive and the code is not easy to review, even I kept changing again and again. Maybe you can help me review?

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

                                        @lpl Not easy to help without the code

                                        ? 2 Replies Last reply Reply Quote 0
                                        • ?
                                          A Former User @cvp last edited by

                                          @cvp https://github.com/yjqiang/yj_ebook_reader

                                          Run eimg_reader.py or ebook_reader.py, and be careful, there are some 18+ contents.

                                          1 Reply Last reply Reply Quote 0
                                          • ?
                                            A Former User @cvp last edited by

                                            @cvp I can use telegram to chat, if you often uses it too.

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