Re: [Tutor] mamelauncher (fwd)

2005-09-14 Thread Alan G
There actually seems to be a bit of a problem in the interaction with the system when it launches mame. If I run this: import os def run_mame_selection(selection): os.system(C:\\mame096b\\mame.exe+ selection) #main selection = tnzs run_mame_selection(selection)

Re: [Tutor] mamelauncher (fwd)

2005-09-13 Thread Danny Yoo
Hi Max, [Keeping tutor@python.org in CC. Please do not send replies only to me: make sure tutor@python.org is being included in the reply.] [Danny] Hint: in the defintion of run_mame_selection, there's some string concatenation going on here: ## def run_mame_selection(selection):

Re: [Tutor] mamelauncher (fwd)

2005-09-13 Thread Danny Yoo
Also, does this work? ## def run_packman(): os.system(C:\\mame096b\\mame.exe packman) ^^^ Gaaa. My apologies: that was a typo. Correct this (and other places where I wrote 'packman') with whatever name you use to explicitly tell MAME to

Re: [Tutor] mamelauncher (fwd)

2005-09-13 Thread Max Russell
There actually seems to be a bit of a problem in the interaction with the system when it launches mame. If I run this: import os def run_mame_selection(selection): os.system(C:\\mame096b\\mame.exe+ selection) #main selection = tnzs run_mame_selection(selection) raw_input()

Re: [Tutor] mamelauncher (fwd)

2005-09-13 Thread Danny Yoo
On Tue, 13 Sep 2005, Max Russell wrote: There actually seems to be a bit of a problem in the interaction with the system when it launches mame. If I run this: import os def run_mame_selection(selection): os.system(C:\\mame096b\\mame.exe+ selection) #main selection = tnzs

Re: [Tutor] mamelauncher

2005-09-12 Thread Max Russell
I've tried running that function, with a little Main method like this: import os def run_mame_selection(selection): os.system(C:\\mame096b\\mame.exe++selection) #main mine = pacman run_mame_selection(mine) What I get is like a brief flash of the CMD prompt like it is trying it and not

Re: [Tutor] mamelauncher

2005-09-12 Thread Alan G
import os def run_mame_selection(selection): os.system(C:\\mame096b\\mame.exe++selection) #main mine = pacman run_mame_selection(mine) What I get is like a brief flash of the CMD prompt Open the command prompt first and run it from there. (Or add a raw_input() line at the end.

Re: [Tutor] mamelauncher

2005-09-10 Thread Max Russell
I was using 2.3 but upgraded to 2.4 last night because I had read about the subprocess module (then Danny also brought tat to my attention.) The wierd spacing is just Yahoo, sorry! I'm probably going to try the same project in WX and then QT, just to get a flavour. thanks Max --- Alan G [EMAIL

[Tutor] mamelauncher

2005-09-09 Thread Max Russell
Hi: I've been working on this for ages and am having real problems with getting the wiring for a selected game to launch when I click OK. I haven't added my error handling yet. Can anyone help? I've tried using spawn, system etc etc to no avail. #Mame Launcher #GUI launcher for MAME games

Re: [Tutor] mamelauncher

2005-09-09 Thread Danny Yoo
On Fri, 9 Sep 2005, Max Russell wrote: I've been working on this for ages and am having real problems with getting the wiring for a selected game to launch when I click OK. I haven't added my error handling yet. [code cut] Hi Max, Hmmm... Out of curiosity, what happens if you try doing

Re: [Tutor] mamelauncher

2005-09-09 Thread Alan G
I've been working on this for ages and am having real problems with getting the wiring for a selected game to launch when I click OK. So what problems are you having? Do you get an error trace? A superficial glance tells me only that 1) You might find using Tix will simplify your