Errors in MultiStateButton

March 31st, 2006 2 Comments »
So I was fine until mid-afternoon yesterday when my code stopped working. It’s hard to figure out what is wrong because I can’t run a source-level debugger on the code on my Mac.

Hm, maybe I should try it on Ubuntu?

The source for MultiStateButton is up on pastebin.ca. Below are the errors.

PyShell 0.9.5 - The Flakiest Python Shell
Python 2.4.2 (#1, Jan 10 2006, 10:56:12)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1671)] on darwin
Type “help”, “copyright”, “credits” or “license” for more information.
execfile(”/Users/rae/work/rae-button/MultiStateButton.py”, { “__name__” :”__main__” })
Traceback (most recent call last):
  File “/Users/rae/work/osaf/chandler/chandler/release/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx/lib/buttons.py”, line 292, in OnPaint
  File “/Users/rae/work/osaf/chandler/chandler/release/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx/lib/buttons.py”, line 435, in DrawLabel
AttributeError: ‘NoneType’ object has no attribute ‘GetWidth’
Traceback (most recent call last):
  File “/Users/rae/work/osaf/chandler/chandler/release/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx/lib/buttons.py”, line 292, in OnPaint
  File “/Users/rae/work/osaf/chandler/chandler/release/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx/lib/buttons.py”, line 435, in DrawLabel
AttributeError: ‘NoneType’ object has no attribute ‘GetWidth’
Traceback (most recent call last):
  File “/Users/rae/work/osaf/chandler/chandler/release/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx/lib/buttons.py”, line 292, in OnPaint
  File “/Users/rae/work/osaf/chandler/chandler/release/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx/lib/buttons.py”, line 435, in DrawLabel
AttributeError: ‘NoneType’ object has no attribute ‘GetWidth’
Traceback (most recent call last):
  File “/Users/rae/work/osaf/chandler/chandler/release/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx/lib/buttons.py”, line 292, in OnPaint
  File “/Users/rae/work/osaf/chandler/chandler/release/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx/lib/buttons.py”, line 435, in DrawLabel
AttributeError: ‘NoneType’ object has no attribute ‘GetWidth’
Traceback (most recent call last):
  File “/Users/rae/work/osaf/chandler/chandler/release/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx/lib/buttons.py”, line 292, in OnPaint
  File “/Users/rae/work/osaf/chandler/chandler/release/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx/lib/buttons.py”, line 435, in DrawLabel
AttributeError: ‘NoneType’ object has no attribute ‘GetWidth’
Traceback (most recent call last):
  File “/Users/rae/work/osaf/chandler/chandler/release/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx/lib/buttons.py”, line 292, in OnPaint
  File “/Users/rae/work/osaf/chandler/chandler/release/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx/lib/buttons.py”, line 435, in DrawLabel
AttributeError: ‘NoneType’ object has no attribute ‘GetWidth’

For completeness, the errors are also on pastebin.ca.

Just when I thought it was all done..

March 31st, 2006 No Comments »
I had incorporated a lot of changes into MultiStateButton and was about ready to put it up for review. But then I added a couple of tests and “blammo!” it’s stopped working.

I think I’m passing the wrong type to the super since it spits out lots of errors when trying to draw any buttons. Alas.

Google Calendar screenshots

March 8th, 2006 No Comments »
The net is littered with screenshots of Google Calendar [1] [2]. Unfortunately, the web app itself is nowhere to be seen.

google calendar
Public and private URLs, eh? Very similar to Cosmo

The screenshots make it look pretty simple. I didn’t see any evidence of “tags” or any other sort of organizing mechanism. There is a strong hook into SMS messaging though. And it’s interesting that the URL calendar.google.com/maps works as a google maps alias. Perhaps there will be some integration between Google Calendar and Google Maps.