Re: GUI Frames and classmethod

2004-12-06 Thread Zak Arntson
On Mon, 06 Dec 2004 13:08:15 -0800, Scott David Daniels [EMAIL PROTECTED] wrote: Zak Arntson wrote: On Fri, 03 Dec 2004 14:48:30 -0800, Scott David Daniels Most likely so. Possibly an equal amount of has work -- hash of a pair is a function of hashes of the lelements, but fewer trips in and

Re: GUI Frames and classmethod

2004-12-06 Thread Scott David Daniels
Zak Arntson wrote: On Mon, 06 Dec 2004 13:08:15 -0800, Scott David Daniels [EMAIL PROTECTED] wrote: Zak Arntson wrote: On Fri, 03 Dec 2004 14:48:30 -0800, Scott David Daniels wrote: ...The real advantage is clarity: the inner dictionaries in a dict-of-dict implementation have no real meaning. The

Re: GUI Frames and classmethod

2004-12-06 Thread Jeremy Bowers
On Mon, 06 Dec 2004 14:11:04 -0800, Scott David Daniels wrote: Second, I was referring to code like: try: inner = table[state] except KeyError: table[state] = inner = {} inner[action] = whatever vs. code like this: table[state, action] =

GUI Frames and classmethod

2004-12-03 Thread Zak Arntson
I'm currently implementing a game GUI, where there are three components to the screen: A battle, a command button area and a city view area. Each of these are rectangular, and handle interactions in different ways. For example, on the battle frame you can select units, right-click to deliver