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

2010-10-29 Thread Lawrence D'Oliveiro
In message , 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 first thing I can do is check in ~/.xsession- e

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

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 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 -- http://ma

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

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 message, Dave Angel wrote: On 2:59 PM, Lawrence D'Oliveiro wrote: In message, 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 t

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

2010-10-27 Thread Lawrence D'Oliveiro
In message , 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 Python interpreter has no GUI. > D

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

2010-10-27 Thread Lawrence D'Oliveiro
In message , Dave Angel wrote: > On 2:59 PM, Lawrence D'Oliveiro wrote: >> In message, 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 Win

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 message, 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 pythonw.exe prog

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-26 Thread Lawrence D'Oliveiro
In message , 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 > information from the associated .info file [Workb

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

2010-10-26 Thread Lawrence D'Oliveiro
In message , 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 > pythonw.exe programs, while Unix can use a single

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 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 wrote: > In message , 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 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-25 Thread Steve Holden
On 10/26/2010 2:08 AM, Lawrence D'Oliveiro wrote: > In message , MRAB wrote: > >> On 25/10/2010 02:19, Lawrence D'Oliveiro wrote: >> >>> In message, Dave >>> Angel wrote: >>> No. GUI programs are marked as win-app, so w stands for "Windows". Non GUI programs run in the console. >>> >>> Y

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

2010-10-25 Thread Lawrence D'Oliveiro
In message , 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, for > heavens sake. But now you’re no longer tal

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

2010-10-25 Thread Lawrence D'Oliveiro
In message , MRAB wrote: > On 25/10/2010 02:19, Lawrence D'Oliveiro wrote: > >> In message, Dave >> Angel wrote: >> >>> No. GUI programs are marked as win-app, so w stands for "Windows". Non >>> GUI programs run in the console. >> >> You mean “GUI console”. So non-GUI apps get a GUI element whethe

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 message, Dave >> Angel >> wrote: >> >>> On 2:59 PM, Lawrence D'Oliveiro wrote: In message , Dave Angel wrote: > Presumably the original pythonw.exe was called that because it's > m

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 message, Dave Angel wrote: On 2:59 PM, Lawrence D'Oliveiro wrote: In message , 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 t

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

2010-10-24 Thread Lawrence D'Oliveiro
In message , Dave Angel wrote: > On 2:59 PM, Lawrence D'Oliveiro wrote: >> >> In message >> , 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 c

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 , 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 they weren't

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

2010-10-23 Thread Lawrence D'Oliveiro
In message , 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 > they weren't already started from one. That's w

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 message, 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? Presumably the original pythonw

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

2010-10-23 Thread Lawrence D'Oliveiro
In message , Chris Rebert wrote: > On Sat, Oct 23, 2010 at 12:32 AM, Lawrence D'Oliveiro > wrote: > >> In message , 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”. > > Why not

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 wrote: > In message , 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”. Why not "windowless"? - Chris -- http://mail.python.org/m

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

2010-10-23 Thread Lawrence D'Oliveiro
In message , 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? -- http://mail.python.org/mailman/listinfo/python-list

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 funct

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

2010-10-22 Thread Ethan Furman
gb345 wrote: In Tim Golden 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 c. execute either C:\Python27\python myapp_tk.py

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

2010-10-22 Thread gb345
In Tim Golden 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 >>c. execute either >> >> C:\Python27\python myapp_tk.py

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 myapp_wx.p