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)
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):
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
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()
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
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
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.
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
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
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
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
11 matches
Mail list logo