Quote:
Originally Posted by Agama
Due to my lack of knowledge I saw:
and I wrongly assumed that this refered to gui2/dialogs/tweak_epub_ui.py, which I couldn't find!
Kovid confirmed that this actually refers to gui2/dialogs/tweak_epub.ui which I do have.
(I don't know exactly how these .ui files work but I guess there is a help document somewhere.)
|
The latest source does not contain gui2/dialogs/tweak_epub*
The .ui files are built by the Qt tool "designer", a fairly vanilla graphical gui builder tool. In some cases they are built by hand when "designer" doesn't do what one wants or when it is easier to modify an existing file.
When calibre starts, the dates on the .ui files are compared to those of the _ui.py files. If the .ui file is newer, it is "compiled" into python that is stored in the _ui.py file, which is imported by the code that needs to manipulate the resulting gui.
Quote:
I downloaded calibre source some months ago so I'm not sure which version it is. How do I find out and should I update it? I am not running from source but simply using it as a means of learning calibre/Python programming.
|
src/calibre/constants.py. Look for "numeric_version". The latest is
numeric_version = (0, 8, 56)