GSOC Day 48-50 – Design finalizing, object types
The past few days, I’ve worked to finish the Design window as much as possible, submitting it for code review. Then, I looked back into the “type” column in IdleFinder, which I had removed because I wasn’t sure whether there was a human readable object type string for objects in tp04. It turns out there is, although it’s not fully utilized in every ruleset. It’s kept in the ObjectDesc. I put the type column back, with this new information.
Then, I started looking at making the now unused panelPicture into a starmap popup. I ran into a problem, however: after encapsulating the top-level panel in the XRC file inside a wx.Frame and re-generating the python code, it gave me an error that seems to be inside the generated code. I can’t seem to figure out what’s going wrong with it. Here’s the error:
Traceback (most recent call last):
File “./tpclient-pywx”, line 267, in Create
self.main = winMain(application)
File “./windows/winMain.py”, line 163, in __init__
instance = panel(application, self)
File “./windows/main/panelStarMap.py”, line 79, in __init__
self.picture = panelPicture(application, self)
File “./windows/main/panelPicture.py”, line 54, in __init__
File “./windows/xrc/panelPicture.py”, line 50, in __init__
pre = getattr(wx, “Pre%s” % base.__name__)()
AttributeError: ‘module’ object has no attribute ‘PrepanelPictureBase’
The odd thing is that this code seems to be a little bit different from other generated XRC code, but changing it to the same style just causes another error.
I’ll have to look into it more tomorrow.