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?
-
@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. -
-
@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.
-
@lpl yes, for the labels, but how much indexes?
-
@cvp 13 Buttons, too. The index may very big, too?
-
@lpl I have a TableView with 10000 lines, very quick. Don't forget that display lines is done only when needed
-
@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.
-
@lpl Not textview but TableView and you can display what you want, like images, in each line.
The covers of my 13000 ePubs
-
@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.
-
@cvp But I need to display the full images on the screen which may have different sizes.
-
@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
-
@cvp Sorry. I wrote another word. I understood that, but I'm not a native speaker so sometimes I may wrote the wrong word.
-
@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 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?
-
@lpl Not easy to help without the code
-
@cvp https://github.com/yjqiang/yj_ebook_reader
Run eimg_reader.py or ebook_reader.py, and be careful, there are some 18+ contents.
-
@cvp I can use telegram to chat, if you often uses it too.
-
@lpl Sorry but it seems a little bit big to really be able to help.
When you scroll your indexes, the script has to update the images in the buttons, thus it takes some time and if you scroll to quickly, has not enough time to refresh the images?
Your white parts happen when you scroll quickly? -
@cvp I use several Labels or Buttons as the subviews of ScrollView. When we scroll, if one subview is hidden(can't be seen by users), then we can move the subview from the top side to the other side.
-
@cvp And yes, when I scroll quickly, the white part shows. But just for Buttons, not Labels or ImageViews. So I think the performance of
Button.title
is not good.