forked from openlp/openlp
Fix indentations
This commit is contained in:
parent
f6d7743905
commit
122756eca5
@ -15,3 +15,4 @@ OpenLP.egg-info
|
|||||||
build
|
build
|
||||||
resources/innosetup/Output
|
resources/innosetup/Output
|
||||||
_eric4project
|
_eric4project
|
||||||
|
.pylint.d
|
||||||
|
@ -136,12 +136,15 @@ class Theme(object):
|
|||||||
except ValueError:
|
except ValueError:
|
||||||
val = t
|
val = t
|
||||||
if (element.tag.find(u'Color') > 0 or
|
if (element.tag.find(u'Color') > 0 or
|
||||||
(element.tag.find(u'BackgroundParameter') == 0 and type(val) == type(0))):
|
(element.tag.find(u'BackgroundParameter') == 0 and
|
||||||
|
type(val) == type(0))):
|
||||||
# convert to a wx.Colour
|
# convert to a wx.Colour
|
||||||
if not delphiColorChange:
|
if not delphiColorChange:
|
||||||
val = QtGui.QColor(val&0xFF, (val>>8)&0xFF, (val>>16)&0xFF)
|
val = QtGui.QColor(
|
||||||
|
val&0xFF, (val>>8)&0xFF, (val>>16)&0xFF)
|
||||||
else:
|
else:
|
||||||
val = QtGui.QColor((val>>16)&0xFF, (val>>8)&0xFF, val&0xFF)
|
val = QtGui.QColor(
|
||||||
|
(val>>16)&0xFF, (val>>8)&0xFF, val&0xFF)
|
||||||
setattr(self, element.tag, val)
|
setattr(self, element.tag, val)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
@ -897,8 +897,9 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
#we are over somthing so lets investigate
|
#we are over somthing so lets investigate
|
||||||
pos = self._getParentItemData(item) - 1
|
pos = self._getParentItemData(item) - 1
|
||||||
serviceItem = self.serviceItems[pos]
|
serviceItem = self.serviceItems[pos]
|
||||||
if plugin == serviceItem[u'service_item'].name \
|
if (plugin == serviceItem[u'service_item'].name and
|
||||||
and serviceItem[u'service_item'].is_capable(ItemCapabilities.AllowsAdditions):
|
serviceItem[u'service_item'].is_capable(
|
||||||
|
ItemCapabilities.AllowsAdditions)):
|
||||||
action = self.dndMenu.exec_(QtGui.QCursor.pos())
|
action = self.dndMenu.exec_(QtGui.QCursor.pos())
|
||||||
#New action required
|
#New action required
|
||||||
if action == self.newAction:
|
if action == self.newAction:
|
||||||
|
@ -430,7 +430,8 @@ class SlideController(QtGui.QWidget):
|
|||||||
if item.is_media():
|
if item.is_media():
|
||||||
self.Toolbar.setVisible(False)
|
self.Toolbar.setVisible(False)
|
||||||
self.Mediabar.setVisible(True)
|
self.Mediabar.setVisible(True)
|
||||||
#self.volumeSlider.setAudioOutput(self.mainDisplay.videoDisplay.audio)
|
#self.volumeSlider.setAudioOutput(
|
||||||
|
# self.mainDisplay.videoDisplay.audio)
|
||||||
|
|
||||||
def enablePreviewToolBar(self, item):
|
def enablePreviewToolBar(self, item):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user