Merge pull request #16 from cuu/master

remove unused footmsg from mpd_spectrum_page
This commit is contained in:
clockworkpi 2018-06-01 14:03:28 +08:00 committed by GitHub
commit 9462b1aa55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 3 deletions

View File

@ -135,7 +135,7 @@ class MPDSpectrumPage(Page):
_Icons = {} _Icons = {}
_Selector=None _Selector=None
_FootMsg = ["Nav","","","Back","Pause"] _FootMsg = ["Nav","","","Back",""]
_MyList = [] _MyList = []
_ListFont = fonts["veramono12"] _ListFont = fonts["veramono12"]

View File

@ -27,7 +27,7 @@ class ListItemIcon(IconItem):
def Draw(self): def Draw(self):
self._CanvasHWND.blit(self._ImgSurf,(self._PosX,self._PosY+(self._Parent._Height-self._Height)/2,self._Width,self._Height)) self._CanvasHWND.blit(self._ImgSurf,(self._PosX,self._PosY+(self._Parent._Height-self._Height)/2,self._Width,self._Height))
class ListItem(object): class ListItem(object):
_PosX = 0 _PosX = 0
_PosY = 0 _PosY = 0

View File

@ -26,7 +26,7 @@ from UI.scroller import ListScroller
from rom_so_confirm_page import RomSoConfirmPage from rom_so_confirm_page import RomSoConfirmPage
from list_item import ListItem from UI.Emulator.list_item import ListItem
import config import config
class RomStack: class RomStack:

View File

@ -51,6 +51,7 @@ class Label:
self._CanvasHWND = _canvashwnd self._CanvasHWND = _canvashwnd
def Draw(self): def Draw(self):
self._FontObj.set_bold(False) ## avoing same font tangling set_bold to others
my_text = self._FontObj.render( self._Text,True,self._Color) my_text = self._FontObj.render( self._Text,True,self._Color)
self._CanvasHWND.blit(my_text,(self._PosX,self._PosY,self._Width,self._Height)) self._CanvasHWND.blit(my_text,(self._PosX,self._PosY,self._Width,self._Height))