Another monthly round-up!

Mar 21, 2010 14:06

grumble grumble one of these days i will actually become true to my word and update more than once every four weeks. Okay let's go:

Challenge fights, swashbuckling, and more! )

Leave a comment

nickmurdoch March 21 2010, 15:55:56 UTC
Holy physical fitness Batman, how do you get the energy to do all that exercise?

If you need any help with the Python, feel free to prod me :)

Reply

thevigilante March 21 2010, 16:03:09 UTC
If I didn't have those rest days in between I would basically die!

I appreciate your offer! Do you have much experience with wxpython? I have a bit of a dilemma in a program I'm working on at the moment.

Reply

nickmurdoch March 21 2010, 16:13:03 UTC
Hmm, I've not used wx before; I prefer PyQt myself; and I've used GTK's C API directly too. Try me, though :)

Reply

thevigilante March 21 2010, 16:17:51 UTC
Okay, basically I'm making a round timer for boxing and such. When I hit the "go" button, my main app launches a window which counts down a "get ready" period before the real round starts. When this countdown finishes, the window closes itself. I then want another window to pop up which has the round countdown.

The problem I'm having is that at the moment the two windows pop up at the same time. There must be a way to use an event triggered by the closing of the first window to make the second one come up, I'm just not sure what it is.

Reply

nickmurdoch March 21 2010, 16:26:40 UTC
Hmm, okay, that is fairly specific to wx! Looking through the apidocs briefly, if you using wx.Window, __init__() shows the window by default, so perhaps you need to call window.Hide() immediately afterwards, or just delay constructing that window until you actually need it?

After looking at that API, I feel I should also direct you to PEP8, the Python Style Guide, since wx seems to have a very weird naming system that most python users would recommend against using in your own code: http://www.python.org/dev/peps/pep-0008/

Reply

thevigilante March 21 2010, 21:56:51 UTC
I shall definitely have a look at the style guide at some point, I haven't worried about that sort of thing too much up to now because I'm still learning how to program.

I'm sure I am being stupid, but I can't figure out a way to delay the construction of the second window! Using sleep doesn't seem to work. Anyway, i shall have another think and if I am still stuck I might have to paste some code at you.

Reply

ari_enchanted March 21 2010, 22:08:15 UTC
#blarbtimerproblems

Reply

thevigilante March 21 2010, 22:13:30 UTC
you are a blarb problem

Reply


Leave a comment

Up