![]() |
#1 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 477
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
Editing ui
I edited the viewer ui file main.ui in Qt Designer, then ran pyuic to create main_ui.py. When I ran the viewer, I got an error message that images_rc could not be found.
What am I doing wrong? (Lack of facility with pyqt may be the answer) |
![]() |
![]() |
![]() |
#2 |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Follow the instructions for setting up a calibre development environment if you haven't already. If you have done so there is no reason to run pyuic or any other command like this by hand. Make your change then run the viewer. The .ui will be "recompiled" with the appropriate modifications for thing like the images_rc's path to be properly set.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 477
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
That makes things easier. Thanks
|
![]() |
![]() |
![]() |
#4 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 477
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
I notice that documentview.py does not import main_ui (although it does import Ui_Dialog from config_ui). How does does documentview use main_ui without importing it?
|
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,188
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
grep main_ui src/calibre/gui2/viewer/*
src/calibre/gui2/viewer/main.py:from calibre.gui2.viewer.main_ui import Ui_EbookViewer |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
editing metadata | sovre | Sony Reader | 1 | 03-15-2011 08:47 AM |
Editing a book | dvd8n | Library Management | 6 | 03-14-2011 05:07 PM |
Editing | Archangel | Introduce Yourself | 6 | 05-22-2008 12:57 PM |
Editing Help | jhempel24 | Sony Reader | 1 | 02-07-2008 03:03 AM |