def Init(self, text): #self._Fonts["normal"] = fonts["veramono12"] l = Label() l._PosX = 10 l.SetCanvasHWND(self._Parent._CanvasHWND) l.Init(text, self._Fonts["normal"]) self._Labels["Text"] = l add_icon = IconItem() add_icon._ImgSurf = MyIconPool.GiveIconSurface("add") add_icon._CanvasHWND = self._CanvasHWND add_icon._Parent = self add_icon.Init(0, 0, MyIconPool.Width("add"), MyIconPool.Height("add"), 0) ware_icon = IconItem() ware_icon._ImgSurf = MyIconPool.GiveIconSurface("ware") ware_icon._CanvasHWND = self._CanvasHWND ware_icon._Parent = self ware_icon.Init(0, 0, MyIconPool.Width("ware"), MyIconPool.Height("ware"), 0) app_icon = IconItem() app_icon._ImgSurf = MyIconPool.GiveIconSurface("app") app_icon._CanvasHWND = self._CanvasHWND app_icon._Parent = self app_icon.Init(0, 0, MyIconPool.Width("app"), MyIconPool.Height("app"), 0) appdling_icon = IconItem() appdling_icon._ImgSurf = MyIconPool.GiveIconSurface("appdling") appdling_icon._CanvasHWND = self._CanvasHWND appdling_icon._Parent = self appdling_icon.Init(0, 0, MyIconPool.Width("appdling"), MyIconPool.Height("appdling"), 0) blackheart_icon = IconItem() blackheart_icon._ImgSurf = MyIconPool.GiveIconSurface("blackheart") blackheart_icon._Width = MyIconPool.Width("blackheart") blackheart_icon._Height = MyIconPool.Height("blackheart") blackheart_icon._CanvasHWND = self._CanvasHWND blackheart_icon._Parent = self self._Icons["add"] = add_icon self._Icons["ware"] = ware_icon self._Icons["app"] = app_icon self._Icons["appdling"] = appdling_icon self._Icons["blackheart"] = blackheart_icon
def Init(self, text): #self._Fonts["normal"] = fonts["veramono12"] self._CanvasHWND = self._Parent._CanvasHWND l = Label() l._PosX = 10 l.SetCanvasHWND(self._Parent._CanvasHWND) l.Init(text, self._Fonts["normal"]) self._Labels["Text"] = l done_icon = IconItem() done_icon._ImgSurf = MyIconPool._Icons["done"] done_icon._CanvasHWND = self._Parent._CanvasHWND done_icon._Parent = self self._Icons["done"] = done_icon