On Tue, 19 Apr 2005, James Graham wrote:

Attached is the patch I mentioned to add a dropdown combo box containing the distance measures. The patch seems to work - doing things like entering "25cm" will correctly parse out the units and update the combobox and lineedit. The major piece of wierdness is that selecting "fraction" in the dropdown with a number > 1 will actually choose "pts" (this is what the code in utilfuncs.py actually does, but it doesn't seem like great UI).

_However_

The patch is kinda ugly, for example there's some quite involved logic to determine what happens if you enter a value without units. I'm not quite sure what the best way to make it prettier is. Suggestions?

I'll have a look at it later. Please bug me if I don't respond!

Jeremy

--
Jeremy Sanders <[EMAIL PROTECTED]>
http://www.jeremysanders.net/                Cambridge, UK
Public Key Server PGP Key ID: E1AAE053

Répondre à