Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 10-29-2011, 05:40 PM   #1
foosion
Enthusiast
foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.
 
Posts: 45
Karma: 4562
Join Date: Sep 2011
Device: Galaxy Nexus, iPad
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)
foosion is offline   Reply With Quote
Old 10-29-2011, 05:59 PM   #2
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,436
Karma: 950001
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.
user_none is offline   Reply With Quote
Old 10-29-2011, 06:29 PM   #3
foosion
Enthusiast
foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.
 
Posts: 45
Karma: 4562
Join Date: Sep 2011
Device: Galaxy Nexus, iPad
That makes things easier. Thanks
foosion is offline   Reply With Quote
Old 10-30-2011, 09:03 AM   #4
foosion
Enthusiast
foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.
 
Posts: 45
Karma: 4562
Join Date: Sep 2011
Device: Galaxy Nexus, iPad
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?
foosion is offline   Reply With Quote
Old 10-30-2011, 09:10 AM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 25,913
Karma: 5035037
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
kovidgoyal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 10:36 PM.


MobileRead.com is a privately owned, operated and funded community.