forked from openlp/openlp
removed whitespaces
This commit is contained in:
parent
41ff5b04df
commit
7175902e6d
@ -306,7 +306,7 @@ class ThemeXML(object):
|
||||
|
||||
def add_font(self, name, color, size, override, fonttype=u'main',
|
||||
bold=u'False', italics=u'False', line_adjustment=0,
|
||||
xpos=0, ypos=0, width=0, height=0 , outline=u'False',
|
||||
xpos=0, ypos=0, width=0, height=0, outline=u'False',
|
||||
outline_color=u'#ffffff', outline_pixel=2, shadow=u'False',
|
||||
shadow_color=u'#ffffff', shadow_pixel=5):
|
||||
"""
|
||||
@ -550,7 +550,7 @@ class ThemeXML(object):
|
||||
element = u'size'
|
||||
return False, master, element, value
|
||||
|
||||
def _create_attr(self, master , element, value):
|
||||
def _create_attr(self, master, element, value):
|
||||
"""
|
||||
Create the attributes with the correct data types and name format
|
||||
"""
|
||||
|
@ -985,11 +985,11 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
||||
# We have a good file, import it.
|
||||
for section_key in import_keys:
|
||||
value = import_settings.value(section_key)
|
||||
settings.setValue(u'%s' % (section_key) ,
|
||||
settings.setValue(u'%s' % (section_key),
|
||||
QtCore.QVariant(value))
|
||||
now = datetime.now()
|
||||
settings.beginGroup(self.headerSection)
|
||||
settings.setValue( u'file_imported' , QtCore.QVariant(import_file_name))
|
||||
settings.setValue(u'file_imported', QtCore.QVariant(import_file_name))
|
||||
settings.setValue(u'file_date_imported',
|
||||
now.strftime("%Y-%m-%d %H:%M"))
|
||||
settings.endGroup()
|
||||
|
@ -57,7 +57,7 @@ class Ui_ServiceItemEditDialog(object):
|
||||
self.dialogLayout.addLayout(self.buttonLayout, 0, 1)
|
||||
self.buttonBox = create_button_box(serviceItemEditDialog, u'buttonBox',
|
||||
[u'cancel', u'save'])
|
||||
self.dialogLayout.addWidget(self.buttonBox , 1, 0, 1, 2)
|
||||
self.dialogLayout.addWidget(self.buttonBox, 1, 0, 1, 2)
|
||||
self.retranslateUi(serviceItemEditDialog)
|
||||
|
||||
def retranslateUi(self, serviceItemEditDialog):
|
||||
|
@ -181,7 +181,7 @@ class ServiceManager(QtGui.QWidget):
|
||||
self.serviceManagerList.moveUp = self.orderToolbar.addToolbarAction(
|
||||
u'moveUp', text=translate('OpenLP.ServiceManager', 'Move &up'),
|
||||
icon=u':/services/service_up.png',
|
||||
tooltip=translate( 'OpenLP.ServiceManager',
|
||||
tooltip=translate('OpenLP.ServiceManager',
|
||||
'Move item up one position in the service.'),
|
||||
shortcuts=[QtCore.Qt.Key_PageUp], category=UiStrings().Service,
|
||||
triggers=self.onServiceUp)
|
||||
|
@ -363,7 +363,7 @@ class CWExtract(object):
|
||||
|
||||
|
||||
class HTTPBible(BibleDB):
|
||||
log.info(u'%s HTTPBible loaded' , __name__)
|
||||
log.info(u'%s HTTPBible loaded', __name__)
|
||||
|
||||
def __init__(self, parent, **kwargs):
|
||||
"""
|
||||
|
@ -24,6 +24,7 @@
|
||||
# with this program; if not, write to the Free Software Foundation, Inc., 59 #
|
||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||
###############################################################################
|
||||
|
||||
import logging
|
||||
import re
|
||||
import shutil
|
||||
@ -308,7 +309,7 @@ class SongImport(QtCore.QObject):
|
||||
verses_changed_to_other[verse_def] = new_verse_def
|
||||
other_count += 1
|
||||
verse_tag = VerseType.Tags[VerseType.Other]
|
||||
log.info(u'Versetype %s changing to %s' , verse_def,
|
||||
log.info(u'Versetype %s changing to %s', verse_def,
|
||||
new_verse_def)
|
||||
verse_def = new_verse_def
|
||||
sxml.add_verse_to_lyrics(verse_tag, verse_def[1:], verse_text, lang)
|
||||
|
@ -118,7 +118,7 @@ class SongUsageDetailForm(QtGui.QDialog, Ui_SongUsageDetailDialog):
|
||||
fileHandle = open(outname, u'w')
|
||||
for instance in usage:
|
||||
record = u'\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",' \
|
||||
u'\"%s\",\"%s\"\n' % ( instance.usagedate,
|
||||
u'\"%s\",\"%s\"\n' % (instance.usagedate,
|
||||
instance.usagetime, instance.title, instance.copyright,
|
||||
instance.ccl_number, instance.authors,
|
||||
instance.plugin_name, instance.source)
|
||||
|
Loading…
Reference in New Issue
Block a user