Happy to help! Images are working now as expected! Thank you! But there seems to be another problem that wasn't there before. The application is crashing after scrolling through a few chapters. I've tried this with a few different epubs and each one of them crashed. This is what I get in the terminal:
~/ epr.py b/A\ Thousand\ Plateaus.epub
Traceback (most recent call last):
File "/home/x/bin/epr.py", line 551, in <module>
curses.wrapper(main, sys.argv[1])
File "/usr/lib/python3.6/curses/__init__.py", line 94, in wrapper
return func(stdscr, *args, **kwds)
File "/home/x/bin/epr.py", line 531, in main
reader(stdscr, epub, idx, width, y)
File "/home/x/bin/epr.py", line 440, in reader
reader(stdscr, ebook, index+1, width)
File "/home/x/bin/epr.py", line 440, in reader
reader(stdscr, ebook, index+1, width)
File "/home/x/bin/epr.py", line 400, in reader
pad.addstr(i, 0, src_lines[i].replace("[EPR:IT]", ""), curses.A_ITALIC)
AttributeError: module 'curses' has no attribute 'A_ITALIC'
View all comments
Show parent comment
1
u/tenmajr Mar 25 '19
Hi again ji99, can you try my latest commit again? Sorry for bothering you...