mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-12 17:58:50 +01:00
avoing same font tangles set_bold to others
This commit is contained in:
parent
14bda09088
commit
eb41762639
@ -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
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user