[Pgu-devel] FileDialog error in 0.10.5
Status: Beta
Brought to you by:
philhassey
|
From: Donal H. <dhe...@us...> - 2006-09-05 01:02:29
|
Alrighty. I'm using pgu for pyweek and after spending about 4 hours on what I thought was user-error I think I've found either a bug or an incompatibility with the versions of stuff I have installed. Here's the problem, it is really easy for my to duplicate, blows up every time. Run examples/gui12.py, click on "Browse..." Here's the error: > File "C:\Documents and Settings\Donal > Heidenblad\Desktop\SVN_PYWEEK\trunk\installs\pgu-0.10.5\examples\gui12.py", > line 11, in open_file_browser > d = gui.FileDialog() > File "..\pgu\gui\dialog.py", line 87, in __init__ > self.title = basic.Label(title_txt, cls=cls+".title.label") > File "..\pgu\gui\basic.py", line 74, in __init__ > self.style.width, self.style.height = self.font.size(self.value) > AttributeError: 'int' object has no attribute 'size' So, I get almost exactly the same trace with my program... For some reason what should be a tuple is an int. I don't get it, I couldn't see any glaringly obvious errors. Dialog works fine. This is with ActivePython 2.4.3.12 Windows XP (32-bit) and Pygame 1.7.1. (And we just got another crash on my teammates machine...) I can't see anything wrong... Labels work fine everywhere, in my code and in the pgu examples, it is only FileDialog that seems to have this Tuple/Int issue. So, I'm going to work on another part of the program, if anyone spots a nice fix, I'd much appreciate it. Thanks, Donal |