avoing same font tangles set_bold to others

This commit is contained in:
cuu 2018-06-01 13:05:26 +08:00
parent 14bda09088
commit eb41762639
3 changed files with 3 additions and 2 deletions

View File

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

View File

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

View File

@ -51,6 +51,7 @@ class Label:
self._CanvasHWND = _canvashwnd
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)
self._CanvasHWND.blit(my_text,(self._PosX,self._PosY,self._Width,self._Height))