Tidy up more code and add color to alerts font

bzr-revno: 361
This commit is contained in:
Tim Bentley 2009-03-02 22:37:03 +00:00
parent 598509ff60
commit 6ff73a17b8
2 changed files with 7 additions and 4 deletions

View File

@ -159,10 +159,13 @@ class AlertsTab(SettingsTab):
self.PreviewGroupBox.setTitle(translate(u'AlertsTab', u'Preview'))
def onBackgroundColourButtonclicked(self):
print "pressed background"
old_name = 0
colour = QtGui.QColorDialog.getColor(QColor(old_name), self).name()
print colour
self.BackgroundColourButton.setStyleSheet('background-color: %s' % colour)
def onFontColourButtonclicked(self):
print "pressed font"
old_name = 0
colour = QtGui.QColorDialog.getColor(QColor(old_name), self).name()
print colour

View File

@ -47,8 +47,8 @@ class BiblePlugin(Plugin, PluginUtils):
self.biblemanager = BibleManager(self.config)
def get_settings_tab(self):
self.BiblesTab = BiblesTab()
return self.BiblesTab
self.bibles_tab = BiblesTab()
return self.bibles_tab
def get_media_manager_item(self):
# Create the MediaManagerItem object