some questions about Python and tkinter

2007-10-16 Thread fabdeb
Hi every one,
I m a sysadmin who want to know how to use python.
I dont know anything about oriented object programation, i only know
bash and a little perl.
I have some simple questions about python.

the first: what is the differences between a function and a classe?

In which case i should use a function ?
In which case i should use a class ?

The second: there is some pincipals gui toolkit: tkinter , Python Mega-
Widgets, PyGTK, PyQt, FxPy, WxPy

what are the advantages of each one, and in which case i use each of
them?

thanks by advance,

Fabrice.witkowski

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: some questions about Python and tkinter

2007-10-18 Thread fabdeb
On Oct 16, 9:17 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
> On Tue, 16 Oct 2007 11:52:22 -0700, fabdeb wrote:
> > the first: what is the differences between a function and a classe?
>
> A class bundles data and functions into one object.
>
> > In which case i should use a function ?
> > In which case i should use a class ?
>
> If you have several functions that operate on the same data it might make
> sense to put all into a class to treat them as one "unit".
>
> > The second: there is some pincipals gui toolkit: tkinter , Python Mega-
> > Widgets, PyGTK, PyQt, FxPy, WxPy
>
> > what are the advantages of each one, and in which case i use each of
> > them?
>
> `Tkinter` is part of the standard library.  If you use that or one of the
> others is a matter of taste to some degree.  In a GNOME environment PyGTK
> may look more natural, under KDE a PyQt or PyKDE based GUI may feel more
> "native".  Another factor for a decision might be the license of the GUI
> toolkit.
>
> Ciao,
> Marc 'BlackJack' Rintsch

Thanks for all your links and responses .
I have a better comprehension of what i have to do for my program.

-- 
http://mail.python.org/mailman/listinfo/python-list