Re: [Schoolsplay-devel] Trouble with menu
Brought to you by:
chris_147,
stas_zytkiewicz
|
From: Stas <st...@ch...> - 2024-05-18 19:59:55
|
Did you fork it? If you have I can check it out and see what the issue is. On May 17, 2024 1:15:45 PM GMT+02:00, "Néstor" <nes...@gm...> wrote: >I'm trying to port childsplay to python 3, I have been mostly >successful, bu I get the following error: > >======== >No binary >['childsplay.py'] >pygame 2.1.2 (SDL 2.0.20, Python 3.10.12) >Hello from the pygame community. https://www.pygame.org/contribute.html ><configparser.ConfigParser object at 0x7fb005fb7580> >True >DEBUG: parsing rc file >/home/txiki/Dokumentuak/tests/childsplay/lib/SPData/themes/childsplay/theme.rc >removed old logpath >DEBUG: localedir: /home/txiki/Dokumentuak/tests/childsplay/locale >langs: ['en', 'en'] >('memory_sp.icon.png', 'memory_sp_ro.icon.png', (-1, -1), 'memory_sp', >False, True) >2024-05-17 13:08:54,697 - childsplay.SPMenu.Activity - ERROR - Error >while constructing the menu buttons. > theme_rc: {'background_login': 'foo.png', 'exclude_modules': '', >'exclude_buttons': 'user,activity,graph', 'menubar_position': 'top', >'level_indicator': 'star', 'menubuttons': 'transparent', 'menubartop': >'menu_bar.png', 'menubarbottom': 'bottom_menubar.png', 'background': >'background.png', 'theme': 'childsplay'}, lang: en_US.utf8 >Traceback (most recent call last): > File "/home/txiki/Dokumentuak/tests/childsplay/SPMenu.py", line 272, >in _build_menu > self.Mn = Menu(p, self.menu, self.menu_callback, theme_rc, lang, >self.menudefault, \ > File "/home/txiki/Dokumentuak/tests/childsplay/SPMenu.py", line 175, >in __init__ > b = TransImgButton(p, hp, pos, name=t[3]) > File "/home/txiki/Dokumentuak/tests/childsplay/SPWidgets/buttons.py", >line 285, in __init__ > ImgButton.__init__(self, image, pos, padding=padding, name=name) > File "/home/txiki/Dokumentuak/tests/childsplay/SPWidgets/buttons.py", >line 206, in __init__ > Button.__init__(self, image, pos, None, padding=padding, name=name) > File "/home/txiki/Dokumentuak/tests/childsplay/SPWidgets/buttons.py", >line 120, in __init__ > fgcol = self.THEME['button_fg_color'] >TypeError: 'NoneType' object is not subscriptable >===== >I guess the error is that the menu is not correctly initialized. Any hints? > >File SPWidgets/buttons.py: line 120: > >else: > fgcol = self.THEME['button_fg_color'] >-- >Néstor Amigo > > >_______________________________________________ >Schoolsplay-devel mailing list >Sch...@li... >https://lists.sourceforge.net/lists/listinfo/schoolsplay-devel |