Ir al contenido principal

Ralsina.Me — El sitio web de Roberto Alsina

Not a calculator

I have been play­ing with this code and it's been lots of fun.

I've hacked it in­to a func­tion­al spread­sheet in (ac­cord­ing to er­ic3) 508 lines of non-­doc code, of which 244 are gen­er­at­ed by pyuic.

Here's my code so far (re­quires PyQt). Give it a look, I think it's kin­da nice.

The on­ly hard part I wrote (at least hard for me) was the cell de­pen­den­cy and re­cal­cu­la­tion sup­port.

There's a test file you can use, too.

It is triv­ial to add func­tions you can use in the cell­s, just lookup python docs for eval() and check en­gine.py.

To use it, unpack it, and from the directory it creates run python ssheet.py

I don't plan to make it a re­al spread­sheet, but it should be fun to hack on :-)


Contents © 2000-2024 Roberto Alsina