linuxNewBee
2014-09-30 17:14:01 UTC
Hello ,
I am using wx.py.shell for running python command and scripts till now so
far so good. Now I need to run python script with arguments. Can somebody
suggest me how to move forward.
from wx.py.shell import Shell as PyShell
class ConsoleFrame(wx.Panel):
def __init__(self, parent):
wx.Panel.__init__(self, parent)
self.shell = PyShell(self, -1)
def runScript(self):
fileName = openFile(message = 'Please enter the script file name')
if os.path.isfile(fileName):
self.shell.runfile(fileName)
--
View this message in context: http://wxpython-users.1045709.n5.nabble.com/run-python-script-with-arguments-in-wx-py-tp5722693.html
Sent from the wxPython-users mailing list archive at Nabble.com.
I am using wx.py.shell for running python command and scripts till now so
far so good. Now I need to run python script with arguments. Can somebody
suggest me how to move forward.
from wx.py.shell import Shell as PyShell
class ConsoleFrame(wx.Panel):
def __init__(self, parent):
wx.Panel.__init__(self, parent)
self.shell = PyShell(self, -1)
def runScript(self):
fileName = openFile(message = 'Please enter the script file name')
if os.path.isfile(fileName):
self.shell.runfile(fileName)
--
View this message in context: http://wxpython-users.1045709.n5.nabble.com/run-python-script-with-arguments-in-wx-py-tp5722693.html
Sent from the wxPython-users mailing list archive at Nabble.com.
--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.