"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/calibre/gui2/metadata/basic_widgets.py" between
calibre-4.0.0.tar.xz and calibre-4.1.0.tar.xz

About: calibre is an e-book library management application (syncing, converting, viewing,\PKG_DESCR_TTnbsp;...).

basic_widgets.py  (calibre-4.0.0.tar.xz):basic_widgets.py  (calibre-4.1.0.tar.xz)
skipping to change at line 45 skipping to change at line 45
from calibre.gui2.comments_editor import Editor from calibre.gui2.comments_editor import Editor
from calibre.library.comments import comments_to_html from calibre.library.comments import comments_to_html
from calibre.gui2.dialogs.tag_editor import TagEditor from calibre.gui2.dialogs.tag_editor import TagEditor
from calibre.utils.icu import strcmp from calibre.utils.icu import strcmp
from calibre.ptempfile import PersistentTemporaryFile, SpooledTemporaryFile from calibre.ptempfile import PersistentTemporaryFile, SpooledTemporaryFile
from calibre.gui2.languages import LanguagesEdit as LE from calibre.gui2.languages import LanguagesEdit as LE
from calibre.db import SPOOL_SIZE from calibre.db import SPOOL_SIZE
from calibre.ebooks.oeb.polish.main import SUPPORTED as EDIT_SUPPORTED from calibre.ebooks.oeb.polish.main import SUPPORTED as EDIT_SUPPORTED
from polyglot.builtins import iteritems, unicode_type, range from polyglot.builtins import iteritems, unicode_type, range
OK_COLOR = 'rgba(0, 255, 0, 12%)' OK_COLOR = 'rgba(0, 255, 0, 50%)'
ERR_COLOR = 'rgba(255, 0, 0, 12%)' ERR_COLOR = 'rgba(255, 0, 0, 50%)'
INDICATOR_SHEET = 'QLineEdit { color: black; background-color: %s }' INDICATOR_SHEET = 'QLineEdit { border: 2px solid %s; border-radius: 2px }'
def save_dialog(parent, title, msg, det_msg=''): def save_dialog(parent, title, msg, det_msg=''):
d = QMessageBox(parent) d = QMessageBox(parent)
d.setWindowTitle(title) d.setWindowTitle(title)
d.setText(msg) d.setText(msg)
d.setStandardButtons(QMessageBox.Yes | QMessageBox.No | QMessageBox.Cancel) d.setStandardButtons(QMessageBox.Yes | QMessageBox.No | QMessageBox.Cancel)
return d.exec_() return d.exec_()
def clean_text(x): def clean_text(x):
return re.sub(r'\s', ' ', x.strip()) return re.sub(r'\s', ' ', x.strip())
 End of changes. 1 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)