Forum: Java Oct 26th, 2007 |
| Replies: 4 Views: 1,494 Thank you very much, I was hoping there was something the API I was missing! :) |
Forum: Java Oct 24th, 2007 |
| Replies: 4 Views: 1,494 Hi! Haven't posted on danniweb for awhile, but I'm hoping I can get some help. I am in the middle of learning Java, which will be my second language after python, and I have come across a problem,... |
Forum: Python Nov 4th, 2006 |
| Replies: 14 Views: 3,768 Another possible challenge, have it able to access a text file from the computer containing a bunch of possible words, so the user can add their own if they wish. |
Forum: Python Nov 3rd, 2006 |
| Replies: 6 Views: 1,558 I don't have much time, so I can only really post this much. Take a look at Mouche's scheduling program:
def add_address(self):
try:
self.address = schedule_data[0][3]
except... |
Forum: Python Nov 3rd, 2006 |
| Replies: 7 Views: 1,495 |
Forum: Python Nov 2nd, 2006 |
| Replies: 12 Views: 2,546 For and While loops serve different functions, you can actually make a For loop using a while loop (though I don't reccomend it.)
Here's a useful function for text-based games:
def... |
Forum: Python Oct 30th, 2006 |
| Replies: 6 Views: 4,266 I haven't done much GUI work to be honest, but I'm PRETTY sure tkinter has a canvas tool, and you could put that into your card class. Anybody else want to chime in on that? |
Forum: Python Oct 28th, 2006 |
| Replies: 2 Views: 842 Tuples are great for constants because you won't accidently change them, they're also faster and use less space then lists, iirc. |
Forum: Python Oct 28th, 2006 |
| Replies: 8 Views: 2,812 I'm not sure what you're trying to do, but this is how you can define an input statement inside of a function:
def question(q):
#Bassiccly, you are setting the variable 'response' to... |
Forum: Python Oct 28th, 2006 |
| Replies: 4 Views: 2,100 A traceback error is simply a diagnostitic tool to see where something went wrong in your program. It shows the last three or so lines executed before the error occured. It's important to realize... |
Forum: IT Professionals' Lounge Oct 27th, 2006 |
| Replies: 81 Views: 15,537 Python
def counting(i=0):
while i < 11:
print i,
i += 1
counting() |
Forum: Python Oct 27th, 2006 |
| Replies: 8 Views: 1,341 What do you mean by
denaylogged()?
Is that a function you defined earlier? |
Forum: Apple Hardware Oct 27th, 2006 |
| Replies: 2 Views: 2,735 A similar thing has been done before, met with various legal successes by Apple. There have been a handful of programs which convert it from the fairplay format into a raw or .wav format.
The... |
Forum: Python Oct 27th, 2006 |
| Replies: 3 Views: 2,610 |
Forum: Python Oct 26th, 2006 |
| Replies: 6 Views: 4,266 In this case, a module such as tkinter would be much more useful since it doesn't contain any animation. TKinter is probably your best bet, sicne you can create a simple GUI interface for the whole... |
Forum: Python Oct 26th, 2006 |
| Replies: 7 Views: 3,388 "rot" is just the parameters defined in the function, and what is happening is it's being added to the value of whatever character the iteration is on.
So therefore, let's say the word is "apple"... |