ソースを参照

avoing same font tangles set_bold to others

cuu 6 年 前
コミット
eb41762639

+ 1 - 1
sys.py/UI/Emulator/list_item.py

@@ -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

+ 1 - 1
sys.py/UI/Emulator/rom_list_page.py

@@ -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:

+ 1 - 0
sys.py/UI/label.py

@@ -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))