Re: File write() problem

2006-12-27 Thread apriebe47
Marc 'BlackJack' Rintsch wrote: > > configfile = file('config.txt', 'w') > > serverPassword = configfile.readline() Hrm. When I run the code that I posted I don't seem to get those errors. > Please post the exact code you have trouble with. Don't retype it -- copy > and paste it. from getpass

File write() problem

2006-12-27 Thread apriebe47
Alright, I realize this is probably very basic to be posted on this newsgroup but I cannot figure out what is causing my problem. Here is the code I am using below: from getpass import getpass configfile = file('config.txt', 'w') serverPassword = configfile.readline() if serverPassword == '':

Tkinter binding and keyboard hardware settings (WinXP)

2006-07-10 Thread apriebe47
Hello, I have created a simple canvas in Tkinter to display a number of PhotoImages, I then bind a key (in my case, ) to start a loop that plays through a list of PhotoImages to make it an animation of sorts. What I noticed is, after holding down the key for a certain time, it would not loop throu