Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-29 Thread Gregory Ewing
Lawrence D'Oliveiro wrote: You mean “GUI console”. So non-GUI apps get a GUI element whether they want it or not, while GUI ones don’t. That’s completely backwards. The G in GUI stands for Graphical. I wouldn't call a window that displays nothing but text graphical. -- Greg --

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-29 Thread Gregory Ewing
gb345 wrote: I see how clicking directly on these files would obviate the need to specify the path of the interpreter, but it's still not clear to me how the interpreter would know where to look for the myscript.py module that both the GUI scripts require. If it's in the same directory as the

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-29 Thread Lawrence D'Oliveiro
In message 8ivfa3fif...@mid.individual.net, Gregory Ewing wrote: Lawrence D'Oliveiro wrote: You mean “GUI console”. So non-GUI apps get a GUI element whether they want it or not, while GUI ones don’t. That’s completely backwards. The G in GUI stands for Graphical. I wouldn't call a window

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-29 Thread Lawrence D'Oliveiro
In message mailman.311.1288232442.2218.python-l...@python.org, Dave Angel wrote: Gee, maybe when you're trying to track down problems, you might try starting the application in a console? On a rationally-designed OS, I have a choice. I can do that, but that’s not really my first resort: the

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-28 Thread Nobody
On Thu, 28 Oct 2010 12:54:03 +1300, Lawrence D'Oliveiro wrote: Why would you want both CLI and GUI functions in one program? An obvious example was the one which was being discussed, i.e. the Python interpreter. But the Python interpreter has no GUI. It may have one if you use wx,

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-27 Thread Dave Angel
On 2:59 PM, Lawrence D'Oliveiro wrote: In messagepan.2010.10.26.17.38.14.766...@nowhere.com, Nobody wrote: python.exe is a console executable, pythonw.exe is a GUI executable. Hence python.exe automatically gets a console window, while pythonw.exe doesn't. That's the whole reason why Windows

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-27 Thread Lawrence D'Oliveiro
In message mailman.296.1288167734.2218.python-l...@python.org, Dave Angel wrote: On 2:59 PM, Lawrence D'Oliveiro wrote: In messagepan.2010.10.26.17.38.14.766...@nowhere.com, Nobody wrote: python.exe is a console executable, pythonw.exe is a GUI executable. Hence python.exe automatically

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-27 Thread Lawrence D'Oliveiro
In message pan.2010.10.27.01.12.21.766...@nowhere.com, Nobody wrote: On Wed, 27 Oct 2010 13:46:28 +1300, Lawrence D'Oliveiro wrote: Why would you want both CLI and GUI functions in one program? An obvious example was the one which was being discussed, i.e. the Python interpreter. But the

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-27 Thread Dave Angel
On 2:59 PM, Lawrence D'Oliveiro wrote: In messagemailman.296.1288167734.2218.python-l...@python.org, Dave Angel wrote: On 2:59 PM, Lawrence D'Oliveiro wrote: In messagepan.2010.10.26.17.38.14.766...@nowhere.com, Nobody wrote: python.exe is a console executable, pythonw.exe is a GUI

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-26 Thread Lawrence D'Oliveiro
In message mailman.208.1287970911.2218.python-l...@python.org, MRAB wrote: On 25/10/2010 02:19, Lawrence D'Oliveiro wrote: In messagemailman.187.1287916654.2218.python-l...@python.org, Dave Angel wrote: No. GUI programs are marked as win-app, so w stands for Windows. Non GUI programs run

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-26 Thread Lawrence D'Oliveiro
In message mailman.216.1287980107.2218.python-l...@python.org, Steve Holden wrote: and, in fact, the console is only a GUI window in a windowed system. It might be one of the console emulation windows that init starts under linux, or even a terminal connected to a computer by a serila line,

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-26 Thread Steve Holden
On 10/26/2010 2:08 AM, Lawrence D'Oliveiro wrote: In message mailman.208.1287970911.2218.python-l...@python.org, MRAB wrote: On 25/10/2010 02:19, Lawrence D'Oliveiro wrote: In messagemailman.187.1287916654.2218.python-l...@python.org, Dave Angel wrote: No. GUI programs are marked as

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-26 Thread Martin Gregorie
On Tue, 26 Oct 2010 02:38:43 -0400, Steve Holden wrote: I really don't understand what you are trying to say here. Could you please explain? I know you to be a capable and sensible person, but this sounds like nonsense to me, so I must be misunderstanding. I think he's saying that on a

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-26 Thread Grant Edwards
On 2010-10-26, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: In message mailman.216.1287980107.2218.python-l...@python.org, Steve Holden wrote: and, in fact, the console is only a GUI window in a windowed system. It might be one of the console emulation windows that init

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-26 Thread Nobody
On Tue, 26 Oct 2010 14:44:11 +, Grant Edwards wrote: There is no difference based on the name of your executable, how it is built, or what libraries it links to; the only difference is in its run-time behaviour, whether it invokes any GUI functions or not. No, we're not talking about

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-26 Thread Lawrence D'Oliveiro
In message pan.2010.10.26.17.38.14.766...@nowhere.com, Nobody wrote: python.exe is a console executable, pythonw.exe is a GUI executable. Hence python.exe automatically gets a console window, while pythonw.exe doesn't. That's the whole reason why Windows has separate python.exe and

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-26 Thread Lawrence D'Oliveiro
In message mailman.265.1288113240.2218.python-l...@python.org, Dennis Lee Bieber wrote: (The Amiga made it simple -- a shell invocation received a non-zero argc, with command line parameters in argv; a clicked invocation received argc of 0, and argv pointed to a structure containing the

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-26 Thread Nobody
On Wed, 27 Oct 2010 13:46:28 +1300, Lawrence D'Oliveiro wrote: Why would you want both CLI and GUI functions in one program? An obvious example was the one which was being discussed, i.e. the Python interpreter. Depending upon the script, it may need to behave as a command-line utility (read

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-24 Thread Dave Angel
On 2:59 PM, Lawrence D'Oliveiro wrote: In message mailman.154.1287832721.2218.python-l...@python.org, Dave Angel wrote: Presumably the original pythonw.exe was called that because it's marked as a windows-app. In win-speak, that means it has a gui. Applications that are not so-marked are

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-24 Thread Lawrence D'Oliveiro
In message mailman.187.1287916654.2218.python-l...@python.org, Dave Angel wrote: On 2:59 PM, Lawrence D'Oliveiro wrote: In message mailman.154.1287832721.2218.python-l...@python.org, Dave Angel wrote: Presumably the original pythonw.exe was called that because it's marked as a

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-24 Thread MRAB
On 25/10/2010 02:19, Lawrence D'Oliveiro wrote: In messagemailman.187.1287916654.2218.python-l...@python.org, Dave Angel wrote: On 2:59 PM, Lawrence D'Oliveiro wrote: In message mailman.154.1287832721.2218.python-l...@python.org, Dave Angel wrote: Presumably the original pythonw.exe was

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-24 Thread Steve Holden
On 10/24/2010 9:40 PM, MRAB wrote: On 25/10/2010 02:19, Lawrence D'Oliveiro wrote: In messagemailman.187.1287916654.2218.python-l...@python.org, Dave Angel wrote: On 2:59 PM, Lawrence D'Oliveiro wrote: In message mailman.154.1287832721.2218.python-l...@python.org, Dave Angel wrote:

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-23 Thread Lawrence D'Oliveiro
In message mailman.128.1287758336.2218.python-l...@python.org, Tim Golden wrote: If you were to rename the .py to a .pyw it would run without a console window showing up. Presumably the “w” stands for “window”. Wouldn’t it be less confusing if it was the other way round? --

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-23 Thread Chris Rebert
On Sat, Oct 23, 2010 at 12:32 AM, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: In message mailman.128.1287758336.2218.python-l...@python.org, Tim Golden wrote: If you were to rename the .py to a .pyw it would run without a console window showing up. Presumably the “w” stands

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-23 Thread Lawrence D'Oliveiro
In message mailman.150.1287821953.2218.python-l...@python.org, Chris Rebert wrote: On Sat, Oct 23, 2010 at 12:32 AM, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: In message mailman.128.1287758336.2218.python-l...@python.org, Tim Golden wrote: If you were to rename the .py

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-23 Thread Dave Angel
On 2:59 PM, Lawrence D'Oliveiro wrote: In messagemailman.128.1287758336.2218.python-l...@python.org, Tim Golden wrote: If you were to rename the .py to a .pyw it would run without a console window showing up. Presumably the “w” stands for “window”. Wouldn’t it be less confusing if it was

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-23 Thread Lawrence D'Oliveiro
In message mailman.154.1287832721.2218.python-l...@python.org, Dave Angel wrote: Presumably the original pythonw.exe was called that because it's marked as a windows-app. In win-speak, that means it has a gui. Applications that are not so-marked are console-apps, and get a console created if

Unix-head needs to Windows-ize his Python script (II)

2010-10-22 Thread gb345
In i9n9ed$q0...@reader1.panix.com gb345 gb...@invalid.com writes: I have a handy Python script, which takes a few command-line arguments, and accepts a few options. I developed it on Unix, with very much of a Unix-mindset. Some Windows-using colleagues have asked me to make the script easy to

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-22 Thread Tim Golden
On 22/10/2010 15:25, gb345 wrote: 3. Both versions of the app work fine on Windows 7, as long as I do the following: a. run CMD b. cd to where the GUI script and my original script live c. execute either C:\Python27\python myapp_tk.py or C:\Python27\python

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-22 Thread gb345
In mailman.128.1287758336.2218.python-l...@python.org Tim Golden m...@timgolden.me.uk writes: On 22/10/2010 15:25, gb345 wrote: 3. Both versions of the app work fine on Windows 7, as long as I do the following: a. run CMD b. cd to where the GUI script and my original script live

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-22 Thread Ethan Furman
gb345 wrote: In mailman.128.1287758336.2218.python-l...@python.org Tim Golden m...@timgolden.me.uk writes: On 22/10/2010 15:25, gb345 wrote: 3. Both versions of the app work fine on Windows 7, as long as I do the following: a. run CMD b. cd to where the GUI script and my original

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-22 Thread python
I much prefer the wx version of the GUI over the tk version of my app. Check out Python 2.7's Tkinter support for Tile. The enhanced version of Tkinter that ships with 2.7 supports native OS themes across all platforms giving you very professional looking user interfaces. wx has lots more