Wednesday, November 18, 2009

implemented!

I got the fixing-up of the redocnE code done yesterday, but forgot to blog about it. What I basically did was, instead of having the bits of code from pycipher copy-pasted in, I just imported it as a module and wrote up the interface between it and ani_crypt. It's on the launchpad, under revision 8 of the devel branch. Today I worked more on figureing out how to return a value in pygtk, and while I didn't figure that out, I learned a lot more about how pygtk works. That code is at ellimistd.doesntexist.com/quit_test.py.

Thursday, November 12, 2009

PEP-8 and more redocnE

Over tuesday and today (no school on wednesday, I accordingly did no computer science) I read PEP-8, and found it somewhat useful, but don't think it'll make me change much. I also thought, inspired by learning about classes, of a new and far better way to have implemented the ciphers taken from pycipher - I'll work on that, should have it done by next tuesday (the origional implementation took twice as long) and then will get back to pygtk.

Monday, November 9, 2009

Tried to write my own thing.

I tried to write a thing, for adding to another application, that would make one of those "really quit?" windows pop up. here

I got the code so that it runs, without copy-pasting (although with a lot of looking back and forth between it and the other sample code), but I have no idea how to hook it up to, say, the hello-world program they made so that it actually does that. I tried a basic return True (or False) statement, but it didn't work. Anything I should do?

Also, it seems the pygtk website is down. I looked at the parts of the tut firefox has cached, but couldn't go further.

Finally, you havn't given me any comments at http://students.gctaa.net/~jelkner/feedback/dreich.html for a while, or on here. Is there another place I should be checking?

Wednesday, November 4, 2009

pygtk boxes and buttons

I looked at http://www.pygtk.org/pygtk2tutorial/sec-DetailsOfBoxes.html today. It seems to make sence, but the example they use is very confusing, in how it creates multiple different things. I'm kind of understanding it, but not very well. Tommorow I may try to write a program of my own with this, without copy pasting. I'd need to look at it a bit more first though, so that would take a while.

Monday, November 2, 2009

More PyGTK

I continued working my way through the pygtk tutorial, I'm understanding it a bit more now. I got to http://www.pygtk.org/pygtk2tutorial/sec-UpgradedHelloWorld.html in the tutorial, and messed around with that code a bit to make the buttons say different things, do different things, call different functions, etc.