Simon Forman
97178b84a3
Bind the mouse to the scan methods.
...
Now you can scroll the star map by "grabbing" the background with the
left mouse button and dragging. Super-cool that Tk(inter) makes this so
simple.
2024-04-15 21:48:30 -07:00
Simon Forman
7331580bfd
Update canvas width and height when window changes.
...
I don't know why Tk(inter) doesn't do this?
2024-04-15 21:18:24 -07:00
Simon Forman
b049f588ab
Display planet info in a Tree widget.
2024-04-14 20:56:07 -07:00
Simon Forman
3d5a490c32
Generate names for the stars.
...
I kinda like these names.
2024-04-14 16:53:47 -07:00
Simon Forman
41860ace77
Star System tab
...
It's janky (I used the canvas item id for the ovals rather than the DB
id column values!) but it kind of works.
It's a little too dramatic to switch tabs, I think it would tend to
undermine or at least not support spacial memory?
It seems like a reasonable thing to bind the details of the stars when
we draw them, because we have them then, eh? The other thing to do
would be just bind the DB id and look up info in the DB as needed in
event handlers and such?
2024-04-13 22:25:29 -07:00
Simon Forman
0e0117e6be
Notebook
...
Easy.
2024-04-13 21:38:56 -07:00
Simon Forman
c28d1be0f5
minor cleanup
2024-04-12 20:34:06 -07:00
Simon Forman
be55cc5432
minor cleanup, mess with bind tags
2024-04-12 19:39:09 -07:00
Simon Forman
effc940235
Move stars code into own module for now.
2024-04-12 19:11:50 -07:00
Simon Forman
9ba1c7fb31
Use SQLite rather than Pickle.
2024-04-12 13:21:07 -07:00
Simon Forman
25e5723661
copyright notice
2024-04-11 21:58:21 -07:00
Simon Forman
9b59fee1fb
Separate state generation from UI.
...
Now the UI loads instantaneously (the starfield takes noticable time to
generate with the Poisson process.)
2024-04-11 21:46:43 -07:00
Simon Forman
410ebbf428
Use Poisson process to lay out stars.
...
It actually looks better the other way?
2024-04-11 21:19:34 -07:00
Simon Forman
0cdc3d2b0e
A simple star field.
2024-04-11 20:54:55 -07:00