Top.Mail.Ru
Python
? ?
LiveJournal for python.
View:Personal Journal.
View:Friends.
View:Calendar.
Missed some entries? Then simply jump to the previous day or the next day.

Sunday, May 27th, 2007

Time:11:46 pm.
Sometimes when I'm working on a Python file of any kind (I try PyGame, wx, and regular .py console files), I'm able to open two or more instances of the same program. I don't want this to happen, never mind because it eats up memory, but out of programming ethic. I know, "I" don't have to open the program twice, but a user can, and I want to ensure that the user can't, at all.

What do I do to make sure there's only one, and just that one, instance of the program open?
Comments: Read 12 orAdd Your Own.

LiveJournal for python.

View:User Info.
View:Friends.
View:Calendar.
View:Memories.
Missed some entries? Then simply jump to the previous day or the next day.

Image