Hi,
I just installed Mattricks and was looking through the source code a bit. Looks nice. Two question, though:
1. What's the best way to change the font encoding used inside Mattricks? ... lets say I want the widgets in english, but my players names are in polish, or my players have strange letters in their names (swedish), etc.
2. Are there any tools for analyzing the progress of players or team over time? I noticed a few empty classes, so are there plans? (maybe this would be field where I could contribute)
Best Regards, Karol
Just did a new FC3 install, and now I'm getting this error when i try to run Mattricks:
[zazell@zazzie Mattricks]$ ./mattricks.py /home/zazell/cvs/cvs/Mattricks/Mattricks/MatchListPage.py:105: DeprecationWarning: wx.MaskColour is deprecated, use `wx.Mask` instead. mask = wxMaskColour(self.glasses_img, wxWHITE) /home/zazell/cvs/cvs/Mattricks/Mattricks/MatchViewerPage.py:1005: DeprecationWarning: wx.MaskColour is deprecated, use `wx.Mask` instead. mask = wxMaskColour(bmp, wxWHITE) /home/zazell/cvs/cvs/Mattricks/Mattricks/MatchViewerPage.py:1009: DeprecationWarning: wx.MaskColour is deprecated, use `wx.Mask` instead. mask = wxMaskColour(bmp, wxWHITE) /home/zazell/cvs/cvs/Mattricks/Mattricks/MatchViewerPage.py:1022: DeprecationWarning: wx.MaskColour is deprecated, use `wx.Mask` instead. mask = wxMaskColour(bmp, wxWHITE) /home/zazell/cvs/cvs/Mattricks/Mattricks/MatchViewerPage.py:1026: DeprecationWarning: wx.MaskColour is deprecated, use `wx.Mask` instead. mask = wxMaskColour(bmp, wxWHITE) Traceback (most recent call last): File "./mattricks.py", line 36, in ? Init.start() File "/home/zazell/cvs/cvs/Mattricks/Mattricks/Init.py", line 57, in start Commandline.parse_and_start() File "/home/zazell/cvs/cvs/Mattricks/Mattricks/Commandline.py", line 105, in parse_and_start all_commands[command](args, help_command) File "/home/zazell/cvs/cvs/Mattricks/Mattricks/Commandline.py", line 121, in parse_cmd_gui Main.main(*args) File "/home/zazell/cvs/cvs/Mattricks/Mattricks/Main.py", line 443, in main app = Main(filename) File "/home/zazell/cvs/cvs/Mattricks/Mattricks/Main.py", line 395, in __init__ wxApp.__init__(self) File "/usr/lib/python2.3/site-packages/wx-2.5.3-gtk2- ansi/wx/_core.py", line 5301, in __init__ self._BootstrapApp() File "/usr/lib/python2.3/site-packages/wx-2.5.3-gtk2- ansi/wx/_core.py", line 4980, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs) File "/home/zazell/cvs/cvs/Mattricks/Mattricks/Main.py", line 418, in OnInit frame.AfterInit() File "/home/zazell/cvs/cvs/Mattricks/Mattricks/Main.py", line 269, in AfterInit self.pages[name].AfterInit() File "/home/zazell/cvs/cvs/Mattricks/Mattricks/Playerlist.py", line 473, in AfterInit self.playerlist.AfterInit() File "/home/zazell/cvs/cvs/Mattricks/Mattricks/Playerlist.py", line 203, in AfterInit self.stars[i] = self.imagelist.Add(create_star_image(i)) File "/usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-ansi/wx/_gdi.py", line 4355, in Add return _gdi_.ImageList_Add(*args, **kwargs) PyAssertionError: C++ assertion "bitmap.GetWidth() == m_width && bitmap.GetHeight() == m_height" failed in ../src/generic/imaglist.cpp (74): invalid bitmap size in wxImageList: this might work on this platform but definitely won't under Windows.
Some side information: Python 2.4.3 wxPython2.5-gtk2-ansi
Is this an error due to wxPython2.5 or is it something else? problem is, that i cant find a suitable version of wxpython for FC3.
Grtz Zazell
Mattricks only supports wxWidgets 2.4.x. You are probably using 2.5.X. In the next version (0.8) we will fully move to 2.5.x
/Oscar
Oscar Gustafsson wrote:
Mattricks only supports wxWidgets 2.4.x. You are probably using 2.5.X. In the next version (0.8) we will fully move to 2.5.x
/Oscar
Correction: It should work with wxWidgets 2.5.x (at least it did last time I tried), but only if it's compiled without unicode support.
/Ragnar
On Mon, 2004-11-15 at 17:25 +0100, Oscar Gustafsson wrote:
Mattricks only supports wxWidgets 2.4.x. You are probably using 2.5.X. In the next version (0.8) we will fully move to 2.5.x
/Oscar
That did the trick, it took me some mandrake rpm's on my fedora box, but somehow it actually works :)
Zazell
On Sun, 14 Nov 2004, Karol Langner wrote:
- What's the best way to change the font encoding used inside Mattricks? ...
lets say I want the widgets in english, but my players names are in polish, or my players have strange letters in their names (swedish), etc.
Encoding may be a bit tricky. I guess that we do not have any support for this setup as we do not explicitly support English when another languague with an available translation is set with the LANG environment variable. This could be fixed.
For the font encodings you should try using your "own" langague I guess. I'm sure some Polish user can enlighten you which is the correct LANG setting. The next (0.8) version will hopefully utilize Unicode, so this will remove that problem.
- Are there any tools for analyzing the progress of players or team over
time? I noticed a few empty classes, so are there plans? (maybe this would be field where I could contribute)
That would be a very nice contribution. We have "plans" for it, but I do not think anyone is working at it for the moment (Ragnar?).
/Oscar
Oscar Gustafsson wrote:
On Sun, 14 Nov 2004, Karol Langner wrote:
- What's the best way to change the font encoding used inside Mattricks? ...
lets say I want the widgets in english, but my players names are in polish, or my players have strange letters in their names (swedish), etc.
Yes, Unicode is the solution to this problem (as Oscar wrote).
- Are there any tools for analyzing the progress of players or team over
time? I noticed a few empty classes, so are there plans? (maybe this would be field where I could contribute)
That would be a very nice contribution. We have "plans" for it, but I do not think anyone is working at it for the moment (Ragnar?).
No, I'm not working on it atm, so go ahead and write something if you want.
/Ragnar
mattricks@lists.lysator.liu.se