|
|
#1 |
|
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Jun 2010
Device: iPhone w/ Stanza
|
I'm looking at the calibre/gui2/convert/look_and_feel.py module, and it's got a bunch of operators in it whose provenance I can't determine:
Code:
TITLE = _('Look & Feel')
ICON = I('lookfeel.svg')
HELP = _('Control the look and feel of the output')
|
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,597
Karma: 28548962
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
They are special builtins the calibre environment defines. They are for easy access to resource files (icons/templates/etc.) and are defined in calibre.utils.resources
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Jun 2010
Device: iPhone w/ Stanza
|
Well, that explains it. I'm editing using Emacs with flymake (an on-the-fly syntax checker) and it's choking on all of these undefined functions. I guess I need to figure out how to make it aware of those functions.
|
|
|
|
|
|
#4 |
|
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Jun 2010
Device: iPhone w/ Stanza
|
@kovidgoyal: If you're still tracking this, I'm interested in maybe doing some ui tweaking in the preferences dialog, on Mac OSX. Does the QT designer work with these ui definitions, or do I have to modify them by hand?
|
|
|
|
|
|
#5 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,597
Karma: 28548962
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
They are created by Qt Designer.
|
|
|
|
| Advert | |
|
|
|
|
#6 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,597
Karma: 28548962
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There's usually a way to specify builtins for syntax checkers.I use vim with pyflakes and that allows you to set a global variable with a list of extra builtins.
|
|
|
|
![]() |
| Tags |
| calibre, development, python |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| With Facebook apparently on the verge of dying, what's next? | Steven Lake | Writers' Corner | 17 | 05-22-2010 12:25 AM |
| Compensation from Irex [Apparently A Hoax] | stonehat | iRex | 4 | 03-25-2010 10:45 AM |
| PRS-600 Sony library - Error undefined | omk3 | Sony Reader | 13 | 01-22-2010 10:52 AM |
| Not loading - AttributeError: /usr/bin/python: undefined symbol: FcPatternBuild | k8oylos | Calibre | 3 | 04-09-2009 07:46 PM |
| Got stuck with 505 apparently | el.astrologo | Sony Reader | 39 | 02-10-2009 08:28 PM |