How to open an explorer window?
Grant Edwards
grante at visi.com
Wed Aug 1 12:58:00 PDT 2007
On 2007-08-01, Robert Dailey <rcdailey at gmail.com> wrote:
> First of all I don't mean to sound unappreciative, I apologize if I have
> offended. Secondly by "unclean" I mean that you're passing in an arbitrary
> string that must be parsed; whereas all of the data components in the string
> can be split up to represent objects and/or methods. For example,
> wx.FileDialog is an interface that has members functions that do various
> tasks. Creating a explorer window using that string is like creating a
> wx.FileDialog by doing: wx.MakeDlg( "-title 'Open a file' -extensions
> '*.txt,*.cpp' -button 'ok' -button 'cancel'" ). My basic point is that I was
> expecting a more object oriented way of opening an explorer window, much
> like wx.FileDialog in comparison.
Explorer isn't a wxWidgets object, it's an external executable
program. External programs don't know anything about Python
objects, only the command-line string.
> wxWidgets is supposed to be platform independent,
You asked how to run a platform-specific program.
> which makes this task difficult.
Not really. "explorer" is a Windows program, so there's no
point it worrying about a platform-independant way to run it.
> I'm not an expert in any other operating system but Windows,
> but the way file explorer is interfaced through windows just
> seems like a very platform specific thing to me (other
> operating systems might do it completely differently I
> imagine).
You can't run explorer on other operating systems.
--
Grant Edwards grante Yow! Make me look like
at LINDA RONSTADT again!!
visi.com
More information about the wxpython-users
mailing list