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/”, line 163, in __init__
instance = panel(application, self)
File “./windows/main/”, line 79, in __init__
self.picture = panelPicture(application, self)
File “./windows/main/”, line 54, in __init__
panelPictureBase.__init__(self, parent)
File “./windows/xrc/”, 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.


~ by greywhind on July 12, 2009.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: