Re: [Tutor] A tutorial for Python and QT4

2008-11-12 Thread Timothy Grant
e the GUI for you. You'll have a much stronger understanding of how things work and fit together if you know how to code it all. -- Stand Fast, tjg. [Timothy Grant] ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] (no subject)

2008-09-30 Thread Timothy Grant
'head'? > if choice == 1 : > head = head + 1 > # If not 'head' then it must be tail > else : > tail = tail + 1 > print "head = ",head > print "tail = ",tail > > > ___ > Tutor maillist - Tutor@python.org

Re: [Tutor] python: can't open file 'test.py' : [Errno 2] No such file or directory

2008-09-30 Thread Timothy Grant
On Tue, Sep 30, 2008 at 9:01 PM, Pierre Dagenais <[EMAIL PROTECTED]> wrote: > Timothy Grant wrote: >> >> On Tue, Sep 30, 2008 at 12:58 PM, Pierre Dagenais >> <[EMAIL PROTECTED]> wrote: >> >>> >>> The file test.py is in I:\Python25\MyCo

Re: [Tutor] python: can't open file 'test.py' : [Errno 2] No such file or directory

2008-09-30 Thread Timothy Grant
npath = C:\\Python25\\MyCode > what am I doing wrong, > Thank u for your help, > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > You need to give the full path to your test.p

Re: [Tutor] Is this a "Class" problem?

2008-08-29 Thread Timothy Grant
de: MyMainFrame. >> m = MySecondFrame(self) >> m.Show() >> m.text_ctrl_2.SetValue("This text was generated from the >> 'MainFrame' window") >> >> Also, method and functio

Re: [Tutor] how to read Messages sorted by thread in thunderbird

2008-08-19 Thread Timothy Grant
>>>> gauss(x) - Returns the value of the Gaussian >>>> function >>>> >>>> line(n) - Prints a line of n asterisks followed >>>> by a newline character. >>>> >>>> You will need to choose a scale for your plot; >

Re: [Tutor] Timestamp

2008-08-18 Thread Timothy Grant
tamp the file with the date it was created when you download the file. Why do you not want to use any python libraries or modules? -- Stand Fast, tjg. [Timothy Grant] ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Is there python editor or plugin for a python editor for curly brackets around code blocks?

2008-08-13 Thread Timothy Grant
tter >> >> up your development directories, depending on the implementation, etc. >> >> >> >> Here's a thread from 1999 on the Python mailing list that discusses the >> >> issue: >> >> http://mail.python.org/pipermail/python-list/1999-June/004450.html >> >> >> >> There's another script towards the end that might even do what you >> >> want, >> >> but >> >> you might want to read what they have to say first :) >> >> >> >> Cheers >> >> ___ >> >> Tutor maillist - Tutor@python.org >> >> http://mail.python.org/mailman/listinfo/tutor If it's no big deal to parse the braces, I would encourage you to write your own python preprocessor to handle that for you. -- Stand Fast, tjg. [Timothy Grant] ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How to reference a wx.grid.Grid outside the methodinwhich it was created?

2008-08-11 Thread Timothy Grant
On Mon, Aug 11, 2008 at 10:40 PM, Lauren Snyder <[EMAIL PROTECTED]> wrote: > Will do! > > Thanks again, > Lauren :-) Let me just add a plug for the wx-python mailing list. it's a good place to learn if you're using wxpython. -- Sta

Re: [Tutor] running python script

2008-08-10 Thread Timothy Grant
ing with file > associations > if there is a better way to do this, i am open to suggestion > > vista & py2.5 > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/

Re: [Tutor] IP address parse

2008-08-09 Thread Timothy Grant
ell there's one glaring problem, but I'll put that down to a re-keying error. there are no quote marks around your pattern string. However, the likely problem is that you are using re.match() instead of re.search(). Your re will ONLY match if the only thing on the line matches your

Re: [Tutor] Confused about "import Numeric" vs "import numpy" for Arrays

2008-08-08 Thread Timothy Grant
()" and "bar()" directly, but it also means that if you have coded a "foo()" and a "bar()" you will not have access to the functions in the module you just imported. -- Stand Fast, tjg. [Timothy Grant] ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Split string on 2 delimiters ?

2008-08-07 Thread Timothy Grant
ting; on two delimiters' >>> re.split(r'[,;]', string) ['this is', ' a test of splitting', ' on two delimiters'] >>> re.split(r'[, ]', string) ['this', 'is', '', 'a', 'test',

Re: [Tutor] date formatter

2008-08-06 Thread Timothy Grant
rmat_indicator = raw_input("Enter a format indicator: ") >date_obj.display(format_indicator.upper()) > > I am having trouble dealing with the case where the user actually types in a > month's name instead of the number: > [EMAIL PROTECTED] ./chap13 18