Re: [Tutor] date formatter

2008-08-06 Thread Timothy Grant
On Wed, Aug 6, 2008 at 11:01 PM, Christopher Spears
<[EMAIL PROTECTED]> wrote:
> Hey,
>
> I'm working on a problem out of Core Python Programming (2nd Edition).  
> Basically, I'm creating a class that formats dates.  Here is what I have so 
> far:
>
> #!/usr/bin/python
>
> import time
>
> class date_format(object):
>def __init__(self, month, day, year):
>month_dict = {("jan","january") : 1,
>  ("feb","february") :2,
>  ("mar", "march") : 3,
>  ("apr", "april") : 4,
>  ("may") : 5,
>  ("jun", "june") : 6,
>  ("jul", "july") : 7,
>  ("aug", "august") : 8,
>  ("sep", "september") : 9,
>  ("oct", "october"): 10,
>  ("nov", "november"): 11,
>  ("dec", "december"): 12
>  }
>try:
>month = int(month)
>except ValueError:
>for eachKey in month_dict.keys():
>if month.lower() in eachKey:
>month = month_dict[eachKey]
>else:
>month = ""
>if month=="" or day=="" or year=="":
>self.date =  time.localtime()
>else:
>self.date = (int(year), month, int(day), 0, 0, 0, 0, 
> 1, -1)
>
>def display(self, format_indicator = None):
>if format_indicator == 'MDY':
>print time.strftime("%m/%d/%y",self.date)
>elif format_indicator == 'MDYY':
>print time.strftime("%m/%d/%Y",self.date)
>elif format_indicator == 'DMY':
>print time.strftime("%d/%m/%y",self.date)
>elif format_indicator == 'DMYY':
>print time.strftime("%d/%m/%Y",self.date)
>elif format_indicator == 'MODYY':
>print time.strftime("%b %d, %Y",self.date)
>else:
>print time.strftime("%a %b %d %Y",self.date)
>
>
> if __name__ == "__main__":
>print "Welcome to the Date Formatter!"
>month = raw_input("Please enter a month: ")
>day = raw_input("Please enter a day: ")
>year = raw_input("Please enter a year: ")
>date_obj = date_format(month, day, year)
>format_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 180> python date_format_v01.py
>
> Welcome to the Date Formatter!
> Please enter a month (as a number): Oct
> Please enter a day: 31
> Please enter a year: 1976
> Traceback (most recent call last):
>  File "date_format_v01.py", line 53, in ?
>date_obj = date_format(month, day, year)
>  File "date_format_v01.py", line 24, in __init__
>if month.lower() in eachKey:
> AttributeError: 'int' object has no attribute 'lower'
>
> Any suggestions?
> -Chris

wrap the call to  month.lower() in a try/except block.

try:
if month.lower() .
except AttributeError:
   process this as a string instead of a number


-- 
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
On Thu, Aug 7, 2008 at 2:25 PM, dave selby <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Is there a neat way to split a string on either of two delimiters ie
> space and comma
>
> Cheers
>
> Dave

>>> import re
>>> string = 'this is, a test of splitting; on two delimiters'
>>> re.split(r'[,;]', string)
['this is', ' a test of splitting', ' on two delimiters']
>>> re.split(r'[, ]', string)
['this', 'is', '', 'a', 'test', 'of', 'splitting;', 'on', 'two', 'delimiters']


-- 
Stand Fast,
tjg.  [Timothy Grant]
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


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

2008-08-08 Thread Timothy Grant
On Fri, Aug 8, 2008 at 9:29 AM, S Python <[EMAIL PROTECTED]> wrote:
>> No, they are not the same. Numeric is older; NumArray is another older
>> package. You should use Numpy if you can.
>> http://numpy.scipy.org/#older_array
>>
> 
>>
>> Now you should be able to import numpy.
>>
>> Kent
>>
>
> Thanks, Kent.  I ended up using:
>>>> from numpy import *
>
> I wasn't sure what the difference was between this and
>>>> import numpy
>
> Thanks!
>
> Samir

In general "from  import *" is a very bad idea.

import  imports a module into its own namespace (e.g., to
access its functionality you would have to do ".foo() and
.bar()" The form that you chose to use imports all of a
module's contents into the current namespace. This means you can call
"foo()" 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] IP address parse

2008-08-09 Thread Timothy Grant
On Sat, Aug 9, 2008 at 9:57 PM, Que Prime <[EMAIL PROTECTED]> wrote:
> I'm trying to parse a log file for all ip addresses but can't get my RE to
> work.  Thanks in advance for pointing me in the right direction
>
>
> #IP address parse
>
> ##
> import re
>
> infile = open("host0_declare.txt","r")
> outfile = open("out.txt","w")
>
> patt = re.compile(\[0-9]{1,3})\.(\[0-9]{1,3})\.(\[0-9]{1,3})\.(\[0-9]{1,3})
>
> for line in infile:
>   m = patt.match(line)
>   if m:
> outfile.write("%s.%s.%s.%s\n"%m.groups())
>
> infile.close()
> outfile.close()
> #
>
> ___
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor

Well 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 pattern.

-- 
Stand Fast,
tjg.  [Timothy Grant]
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] running python script

2008-08-10 Thread Timothy Grant
On Sat, Aug 9, 2008 at 3:33 PM, r t <[EMAIL PROTECTED]> wrote:
> currently i have a batch file that is associated with .txt extentions
> so when i double click on a text file, windows runs the batch file that then
> sends command line args to MY text editor program..."Texteditor.py", instead
> of Microsofts feature rich Crappad. :-P
> this works, but the problem is the commad prompt stays open in the
> background
> cluttering up my desktop.
> So,
> 1. How do i close the command prompt after starting my program???
>
> here is my one line batch script:
> C:\Python25\python.exe C:\Python25\TextEditor.py %1
>
> 2. or how do i do this in a much more elegant way??
>
> i know there is a win32 ShellExecute fuction that will open a file WITHOUT
> "CMD"
> but i dont know how to make this work for what i am doing 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/listinfo/tutor
>
>

Have you tried using pythonw instead of python?

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

-- 
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
On Wed, Aug 13, 2008 at 9:08 PM, xbmuncher <[EMAIL PROTECTED]> wrote:
> I don't see what the big deal is on coming up with the .{ #{, and other
> bracket types to try to not interfere with normal bracket use in python. Its
> relatively easy to create a parser to identify the brackets in use normally
> and the code block brackets, with regex or without.
>
> On Wed, Aug 13, 2008 at 11:39 PM, Chad Crabtree <[EMAIL PROTECTED]> wrote:
>>
>> Oh, I forgot there's another way to add braces
>>
>> if it_is_way_cool: #{
>>  print 'coolness'
>> #}
>>
>> On Wed, Aug 13, 2008 at 11:06 PM, xbmuncher <[EMAIL PROTECTED]> wrote:
>> > I'll check out your links. But in response to some of the things said:
>> > I'm a fan of indentation, a replacement of indentation with curly braces
>> > is
>> > not what I was aiming for. If I could have it my way, I'd have
>> > indentation
>> > and curly braces. I don't want to change official python syntax either..
>> > I
>> > just want to be able to easily do it myself.
>> >
>> > The big problem I had that I didn't explain well enough when I said
>> > "visually" is that it is visually hard to tell when code blocks end when
>> > other code blocks and statements begin immediately after them. With
>> > curly
>> > braces you can easily visualize when looking at a lot of code where the
>> > code
>> > block ends. The best thing you can do in python currently is to put an
>> > empty
>> > line in between the last line of a code block and the following code, so
>> > you
>> > can better visualize the end of the code block.
>> >
>> > On Wed, Aug 13, 2008 at 4:23 AM, Chris Fuller
>> > <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Some clarifications w.r.t. indentation and Python:
>> >> http://www.secnetix.de/olli/Python/block_indentation.hawk
>> >>
>> >> It's just a joke, really:
>> >> http://timhatch.com/projects/pybraces/
>> >>
>> >> Turnabout is fair play!
>> >> http://blog.micropledge.com/2007/09/nobraces/
>> >>
>> >> Also, pindent.py in the Tools/scripts directory of your Python
>> >> distribution
>> >> will produce correctly indented scripts if the blocks are designated
>> >> with
>> >> a "#end" line.
>> >>
>> >>
>> >> But seriously, you don't want to go creating a separate class of source
>> >> file.
>> >> It'll be harder for you and the other programmers to context switch
>> >> when
>> >> working with code that uses the standard style, will confuse others who
>> >> won't
>> >> know what to do with your code, adds overhead to the compiling, will
>> >> break
>> >> when somebody tries to run it under the standard environment, could
>> >> clutter
>> >> 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] Timestamp

2008-08-18 Thread Timothy Grant
On Mon, Aug 18, 2008 at 9:15 AM, swati jarial <[EMAIL PROTECTED]> wrote:
> Is there a way to put a timestamp on an FTP download in Python without using
> any python library or module?
>
> Thanks for any help!!

What exactly are you trying to accomplish?

The file system will stamp 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] how to read Messages sorted by thread in thunderbird

2008-08-19 Thread Timothy Grant
sounds like a homework assignment. We don't write programs for
>>> assignments. We offer help after you give it your best effort.
>>>
>>>>
>>>> I am having trouble with the gaussian function and don't really know
>>>> where
>>>> to start.
>>>>
>>>
>>> It sounds like you are having trouble with programming, not with the
>>> gaussian function. Did you run the following code? Did it give you any
>>> useful results? (I expect it to raise an exception.) At least run it and see
>>> what happens. How does it contribute to the overall result?
>>>
>>>s=''
>>>for n in range (0,100):
>>>s=s+ '*'
>>>print s
>>>
>>>
>>> Can you at least outline the program or algorithm as a starting place.
>>>
>>>>
>>>> "Write a program which asks the user for values
>>>> of xmin, dx and nx. The program should then
>>>> output a plot of the gaussian function
>>>>
>>>>
>>>> at the following series of values of x:
>>>> xmin, xmin+dx, xmin+2*dx, xmin+3*dx, : : :,
>>>> xmin+(nx-1)*dx. e.g. the following output
>>>> should result if xmin = 2:5, dx = 0:5 and
>>>> nx = 11.
>>>> -2.50 *
>>>> -2.00 ***
>>>> -1.50 **
>>>> -1.00 
>>>> -0.50 **
>>>> 0.00 
>>>> 0.50 **
>>>> 1.00 
>>>> 1.50 **
>>>> 2.00 ***
>>>> 2.50 *
>>>> The program should contain and make full use
>>>> of the following functions:
>>>> 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;
>>>> in the example shown the number of asterisks
>>>> is 50 * gauss(x).
>>>>
>>>> Should I start with a program like this?
>>>>
>>>>s=''
>>>>for n in range (0,100):
>>>>s=s+ '*'
>>>>print s
>>>>
>>>> Thanks for any help received. :confused:
>>>>
>>>
>>> --
>>> Bob Gailer
>>> Chapel Hill NC 919-636-4239
>>>
>>> When we take the time to be aware of our feelings and needs we have more
>>> satisfying interatctions with others.
>>>
>>> Nonviolent Communication provides tools for this awareness.
>>>
>>> As a coach and trainer I can assist you in learning this process.
>>>
>>> What is YOUR biggest relationship challenge?
>>>
>>> ___
>>> Tutor maillist  -  Tutor@python.org
>>> http://mail.python.org/mailman/listinfo/tutor
>>>
>>>
>>>
>>
>>
>
> hello, guys:
>
>   Sorry to ask a question not related to python, but to the mail list. That
> is i use thundbird to read the list,  just find  when  a post with many
> threads is clustered and unfriendly to me.  My question is there a  way to
> read  messages sorted by thread ( just  like in web  version
> http://mail.python.org/pipermail/ )  but   in thunderbird or other mail
> applications, or other way better ?
>   thks
> --song *
> *
> ___
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>

Looks to me like you might be subscribed to the digest instead of
individual messages. If you're subscribed to the digest, you likely
have to read the messages in the order the digest provides them.

-- 
Stand Fast,
tjg. [Timothy Grant]
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


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

2008-08-29 Thread Timothy Grant
On Fri, Aug 29, 2008 at 9:19 AM, Adrian Greyling
<[EMAIL PROTECTED]> wrote:
> Thanks for the response Jeff, although your answer has spawned another
> question or two!  In your answer, you showed that the attribute "
> MySecondFrame.text_ctrl_2" doesn't exist and to correct that, you suggested
> the code below.  (What I understand from your response is that I can't
> reference the original object, but I must create an instance of it.  Is that
> right??)
>
> def MainToSecond(self, event): # wxGlade: MyMainFrame.
>
> m = MySecondFrame(self)
> m.Show()
>
> m.text_ctrl_2.SetValue("This text was generated from the 'MainFrame'
> window")
>
> Here's where I get fuzzy...  Let's say I've got a "frame_1" object
> that opens a new "frame_2" object.  As you've suggested above, I'll use "m"
> to create an instance of a frame object.  Now frame_2 opens a "dialog_1'"
> which asks for information that is sent back to 'frame_2'. How do I
> reference 'frame_2' in this case?  Especially when frame_2 hasn't been
> closed and has just been waiting behind dialog_1 until dialog_1 closes.
> When I try to reference it again as "m = frame_2(self)" from a new function
> definition, aren't I creating a brand new frame_2 object that has "blank"
> attributes, so to speak?
>
> I'm sure I've made things clear as mud, but hopefully with my blathering,
> someone will undertand my utter confusion!
>
> Thanks everyone!
> Adrian
>
>
>
>
> On Mon, Aug 18, 2008 at 3:29 PM, Jeff Younker <[EMAIL PROTECTED]> wrote:
>>
>> On Aug 18, 2008, at 9:13 AM, Adrian Greyling wrote:
>>
>> def MainToSecond(self, event): # wxGlade: MyMainFrame.
>> MySecondFrame(self).Show()
>> MySecondFrame.text_ctrl_2.SetValue("This text was generated from
>> the 'MainFrame' window")
>>
>> The expression MySecondFrame(self) creates a new object.  It
>> initializes the new object by calling the MySecondFrame's __init__
>> method.
>>
>> class MySecondFrame(wx.Frame):
>> def __init__(self, *args, **kwds):
>> # begin wxGlade: MySecondFrame.__init__
>> ...
>>
>>self.text_ctrl_2 = wx.TextCtrl(self, -1, "",
>> style=wx.TE_MULTILINE)
>> ...
>>
>> The __init__ method calls sets the variable text_ctrl_2 in the object
>> m.
>> Your function MainToSecond is trying to get the attribute
>> MySecondFrame.text_ctrl_2.
>> This attribute does not exist.  You want to get the attribute
>> m.text_ctrl_2.  So, the method
>> should be:
>> def MainToSecond(self, event): # wxGlade: MyMainFrame.
>> m = MySecondFrame(self)
>> m.Show()
>> m.text_ctrl_2.SetValue("This text was generated from the
>> 'MainFrame' window")
>>
>> Also, method and function names should always start with a lower case
>> letter: always
>> mainToSecond and never MainToSecond
>> -jeff
>
> ___
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
Adrian,

Two things...

You should check out the wxpython mailing list. It's a much better
place to ask wxPython related questions.

You should check out the wx.lib.pubsub module. It will allow you to
publish data in one object and subscribe to it in another.



-- 
Stand Fast,
tjg. [Timothy Grant]
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


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 12:58 PM, Pierre Dagenais
<[EMAIL PROTECTED]> wrote:
> The file test.py is in I:\Python25\MyCode,
> if I enter:
>
>  C:\>Python25\MyCode\python25 test.py at the DOS prompt, everything works as
> I would expect.
>
> However when I enter the same command from any other directory I get this
> error:
>
>  C:\>python test.py
>   python: can't open file 'test.py' : [Errno 2] No such file or directory
>
> I've set the environment variable pythonpath as
>  C:\>set pythonpath = 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.py file.

PYTHONPATH sets the python library search path.


-- 
Stand Fast,
tjg.  [Timothy Grant]
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


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\MyCode,
>>> if I enter:
>>>
>>>  C:\>Python25\MyCode\python25 test.py at the DOS prompt, everything works
>>> as
>>> I would expect.
>>>
>>> However when I enter the same command from any other directory I get this
>>> error:
>>>
>>>  C:\>python test.py
>>>  python: can't open file 'test.py' : [Errno 2] No such file or directory
>>>
>>> I've set the environment variable pythonpath as
>>>  C:\>set pythonpath = 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.py file.
>>
>> PYTHONPATH sets the python library search path.
>>
>>
>>  Thank you Tim,
>> Definitively C:\python \python25\mycode\test.py does work. If you're right
>> about having to give the full path, and I suspect you are, Then this means
>> that python knows to search the currennt working directory for  the file to
>> execute, but nowhere else. It seems a strange behavior. Maybe this is on Mr.
>> Guido van Rossum todo list.
>>
>

Why is that strange? Would you expect any other program not on the
path to execute without a fully qualified path? Make your python code
executable, and put it somewhere on the path and I'm quite sure it
would run as expected (though it has been over 10 years since I last
had to work on a Windows box so I'm not quite sure how to do that).

-- 
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
On Tue, Sep 30, 2008 at 10:20 PM, Pierre Dagenais
<[EMAIL PROTECTED]> wrote:
> kayla bishop wrote:
>>
>> I can't figure out how to write a program where you flip a coin 100 times
>> and it keeps track of how many heads and tails you flipped but it has to be
>> random. Can you please help
>> _
>> Get more out of the Web. Learn 10 hidden secrets of Windows Live.
>>
>> http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008
>>  
>>
>> ___
>> Tutor maillist  -  Tutor@python.org
>> http://mail.python.org/mailman/listinfo/tutor
>>  
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - http://www.avg.com Version: 8.0.173 / Virus Database:
>> 270.7.5/1698 - Release Date: 29/09/2008 7:25 PM
>>
>>
>
> Here is how one newbie would do it:
>
>
> import random
>
> # Initialize variables
> head = 0
> tail = 0
>
> # Flip the coin a hundred times
> for x in range(100):
>   choice = random.randint(1,2)
>  # Is it '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
> http://mail.python.org/mailman/listinfo/tutor
>

Please let us know if Pierre gets an an "A" on that assignment or not Kayla.

-- 
Stand Fast,
tjg.  [Timothy Grant]
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] A tutorial for Python and QT4

2008-11-12 Thread Timothy Grant
On Wed, Nov 12, 2008 at 6:50 AM, Robert Berman <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am looking for a tutorial teaching how to use QT4 Designer with Python.
> There are a number of very good tutorials for QT3, but I do not want to drop
> back from QT4.I have no problem designing the form(s) using QT4 designer;
> including signals and slots; but..I am not even certain why the form has
> to be saved as a .ui file rather  than a .frm file. I have no idea how to
> generate the python shells I can use to fill in the code for my defined
> events and the lack of a really good tutorial or two  is certainly placing
> me under a real handicap.
>
> Any pointers, literally, to some tutorials would be most appreciated.
>
> I am using  Linux (ubuntu -- 8.10) with Eric as my editor.
>
> Thanks,
>
> Robert
>
> ___
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>

It's been a long time since I played with Qt, but I firmly believe you
need to learn how to code the GUI first before you start playing with
the tools that will code 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