Re: [Tutor] Question about GUI applications.

2011-11-08 Thread Alan Gauld
On 08/11/11 04:30, Nathaniel Trujillo wrote: I just wrote the following GUI application. How do I get rid of the 7k in the upper left hand corner and how to I put other stuff there like say a picture of someone. Thanks for the help. If you are using Windows I don't think you can, due to a bug i

Re: [Tutor] Tutor Digest, Vol 93, Issue 38

2011-11-08 Thread Rich Lovely
On 8 Nov 2011, at 02:45, tutor-requ...@python.org wrote: > > Message: 4 > Date: Tue, 08 Nov 2011 11:26:31 +1100 > From: Steven D'Aprano > To: tutor@python.org > Subject: Re: [Tutor] Single line webserver > Message-ID: <4eb87737.8020...@pearwood.info> > Content-Type: text/plain; charset=ISO-8859-

Re: [Tutor] tkfiledialogs and hidden files

2011-11-08 Thread Dave Angel
On 11/07/2011 09:45 PM, Jose Amoreira wrote: Hello! Is there any way to configure tkFileDialogs so that they don't display hidden files? Thanks. Ze Amoreira I can't help you with tk, but maybe I can help you ask a better question. "Hidden files" means a different thing on various operating sys

Re: [Tutor] tkfiledialogs and hidden files

2011-11-08 Thread Jose Amoreira
On Tuesday, November 08, 2011 12:38:19 PM Dave Angel wrote: > On 11/07/2011 09:45 PM, Jose Amoreira wrote: > > Hello! > > Is there any way to configure tkFileDialogs so that they don't display > > hidden files? > > Thanks. > > Ze Amoreira > > I can't help you with tk, but maybe I can help you ask

Re: [Tutor] tkfiledialogs and hidden files

2011-11-08 Thread Wayne Werner
On Tue, Nov 8, 2011 at 6:56 AM, Jose Amoreira wrote: > ** > > On Tuesday, November 08, 2011 12:38:19 PM Dave Angel wrote: > > > On 11/07/2011 09:45 PM, Jose Amoreira wrote: > > > > Is there any way to configure tkFileDialogs so that they don't display > > > > hidden files? > > "Hidden files" mea

[Tutor] Progress Bar

2011-11-08 Thread Nikunj Badjatya
Hi All, I am writing an installer in Python and Powershell which will be used to install Virtual Machines at specific locations. The main script is in Python and main.py inturn calls Powershell scripts (.PS1). It is complete console based and no gui. I am using Python 2.7 I was thinking to have

Re: [Tutor] Question about GUI applications.

2011-11-08 Thread Steve Willoughby
On 08-Nov-11 00:39, Alan Gauld wrote: On 08/11/11 04:30, Nathaniel Trujillo wrote: I just wrote the following GUI application. How do I get rid of the 7k in the upper left hand corner and how to I put other stuff there like say a picture of someone. Thanks for the help. If you are using Window

Re: [Tutor] Progress Bar

2011-11-08 Thread Rance Hall
On Tue, Nov 8, 2011 at 9:42 AM, Nikunj Badjatya wrote: > Hi All, > I am writing an installer in Python and Powershell which will be used to > install Virtual Machines at specific locations. > The main script is in Python and main.py inturn calls Powershell scripts > (.PS1). > It is complete consol

[Tutor] string split function - how to tell how many splits

2011-11-08 Thread Cranky Frankie
How do you tell how many splits the string split funtion returns? For example: field = 'The Good Wife ;' # a string separated by spaces new_list = field.split(' ') # create a list of space delimited elements print (new_list[0]) # print the first one print (new_list[1])

Re: [Tutor] string split function - how to tell how many splits

2011-11-08 Thread Joel Goldstick
On Tue, Nov 8, 2011 at 11:56 AM, Cranky Frankie wrote: > How do you tell how many splits the string split funtion returns? For > example: > > field = 'The Good Wife ;' # a string separated by spaces > new_list = field.split(' ') # create a list of space delimited elements > print (new_li

Re: [Tutor] string split function - how to tell how many splits

2011-11-08 Thread Steven D'Aprano
Cranky Frankie wrote: How do you tell how many splits the string split funtion returns? For example: field = 'The Good Wife ;' # a string separated by spaces new_list = field.split(' ') # create a list of space delimited elements print (new_list[0]) # print the first one pr

Re: [Tutor] Single line webserver [was: Tutor Digest, Vol 93, Issue 38]

2011-11-08 Thread Steven D'Aprano
Rich Lovely wrote: I'd like to draw your attention to my original message: "a google search is similarly lacking in relevant results." Shouldn't it be clear from how easy it is to find SimpleHttp that it clearly /isn't/ what I'm looking for? Perhaps I should have mentioned that, but I thought I

Re: [Tutor] string split function - how to tell how many splits

2011-11-08 Thread Dave Angel
On 11/08/2011 11:56 AM, Cranky Frankie wrote: How do you tell how many splits the string split funtion returns? For example: field = 'The Good Wife ;' # a string separated by spaces new_list = field.split(' ') # create a list of space delimited elements print (new_list[0])

Re: [Tutor] Single line webserver

2011-11-08 Thread Prasad, Ramit
>Windows Command Prompt gotta be the most powerful language on earth, it >has a full-blown server in a single word: >C:\Program Files\Apache Software Foundation\Apache2.2\bin> httpd.exe Ramit Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology 712 Main Street | Houston, TX

Re: [Tutor] Question about GUI applications.

2011-11-08 Thread Alan Gauld
On 08/11/11 15:56, Steve Willoughby wrote: I can't recall what it is, but its similar to the one used for setting the title text on the Window, one of the wm_x calls. I have an app I'm developing and running successfully on Windows ... root = Tkinter.Tk() root.iconbitmap(default=ico_image

Re: [Tutor] Progress Bar

2011-11-08 Thread Alan Gauld
On 08/11/11 15:42, Nikunj Badjatya wrote: I am writing an installer in Python and Powershell which will be used to install Virtual Machines at specific locations. I see you got a reply from Rance. But since this list is for folks learning the python language you would be more likely to get r

[Tutor] Beginning Python From Perl

2011-11-08 Thread Jihad Esmail
Hi! I am new to this list so stick with me. I've recently taken interest in learning Python. I have already learned Perl. How should I go about learning Python from Perl? Please help. Thanks! ___ Tutor maillist - Tutor@python.org To unsubscribe or chang

Re: [Tutor] Beginning Python From Perl

2011-11-08 Thread Peter Camilleri
I too learnt perl first and I came to learn python through the google python class http://code.google.com/edu/languages/google-python-class/ It has video lectures and exercises which should help you illustrate the basic concepts in each video. I am by no means an python expert, but I feel that s

[Tutor] Another question about GUI applications.

2011-11-08 Thread Nathaniel Trujillo
I tried the code you suggested and I got the following error message. Here is the code I tried. root = Tkinter.Tk() root.iconbitmap(default=ico_image_filename) And here is the error message. Traceback (most recent call last): File "C:\Python31\mad_lib.py.py", line 112, in root = Tkinter.

Re: [Tutor] Another question about GUI applications.

2011-11-08 Thread Steven D'Aprano
Nathaniel Trujillo wrote: Traceback (most recent call last): File "C:\Python31\mad_lib.py.py", line 112, in root = Tkinter.Tk() NameError: name 'Tkinter' is not defined You have to import the Tkinter module first: import Tkinter -- Steven

Re: [Tutor] Beginning Python From Perl

2011-11-08 Thread Joel Goldstick
start with python.org. There is a tutorial and lots more On Tue, Nov 8, 2011 at 5:14 PM, Jihad Esmail wrote: > Hi! I am new to this list so stick with me. I've recently taken interest > in learning Python. I have already learned Perl. How should I go about > learning Python from Perl? Please he

Re: [Tutor] Beginning Python From Perl

2011-11-08 Thread Ken G.
Not necessary learning from Perl but I would recommend Alan Gauld's online website for learning Python from scratch: http://www.alan-g.me.uk/ Good luck in learning Python. Ken On 11/08/2011 05:14 PM, Jihad Esmail wrote: Hi! I am new to this list so stick with me. I've recentl

Re: [Tutor] Beginning Python From Perl

2011-11-08 Thread Steve Willoughby
On 08-Nov-11 14:14, Jihad Esmail wrote: Hi! I am new to this list so stick with me. I've recently taken interest in learning Python. I have already learned Perl. How should I go about learning Python from Perl? Please help. Thanks! I, too, was a long-standing Perl programmer before diving into

Re: [Tutor] Another question about GUI applications.

2011-11-08 Thread Alan Gauld
On 08/11/11 22:41, Steven D'Aprano wrote: Nathaniel Trujillo wrote: Traceback (most recent call last): File "C:\Python31\mad_lib.py.py", line 112, in root = Tkinter.Tk() NameError: name 'Tkinter' is not defined You have to import the Tkinter module first: And since you seem to be using Py

Re: [Tutor] Beginning Python From Perl

2011-11-08 Thread Alan Gauld
On 08/11/11 22:59, Ken G. wrote: Not necessary learning from Perl but I would recommend Alan Gauld's online website for learning Python from scratch: http://www.alan-g.me.uk/ Thanks for the plug! :-) But if you (the OP) already know Perl the standard official tutorial should be a great start

Re: [Tutor] Question about GUI applications.

2011-11-08 Thread Alan Gauld
On 08/11/11 15:56, Steve Willoughby wrote: I have an app I'm developing and running successfully on Windows (as well as OSX and Linux). At least in this case it is able to replace the application icon in place of the default "TK" one. The code I use is: root = Tkinter.Tk() root.iconbitmap(defau

Re: [Tutor] Question about GUI applications.

2011-11-08 Thread Steve Willoughby
On 08-Nov-11 16:38, Alan Gauld wrote: I note it says this sets the bitmap for the "iconified widget". That to me means the icon on the desktop, or in the Taskbar. Can you confirm that it also sets the icon at top left in the title bar? Yes, it changes the top left of the application window. To