View Single Post
Old 10-06-2014, 03:14 AM   #2
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: 45,482
Karma: 28000000
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre-debug -c "from calibre.gui2 import build_forms; build_forms("/path/to/toplevel/dir/containg/your/.ui/file)"

And note that because of the way build_forms() works (it is designed for the calibre source code) your .ui file must be in the calibre/gui2 subdirectory

Last edited by kovidgoyal; 10-06-2014 at 03:16 AM.
kovidgoyal is offline   Reply With Quote