wxpython tutorials

R

Raghul

hi,

I want to learn Wxpython to work in windows.Is there any tutorials
available?Pls specify the link that will be easy to learn for beginers
like me
 
H

Harlin Seritt

Here is the old one...
http://www.wxpython.org/tutorial.php

It truly is a short tutorial though. This one's even better:

http://wiki.wxpython.org/index.cgi/FrontPage

I am not a wxPython enthusiast. I like Tkinter much better. If you have
an interest, take a look at:
http://www.pythonware.com/library/tkinter/introduction/ by Frederik
Lundh. It is very easy to understand.

Tkinter is easier to learn. It is better documented IMO. Tkinter is
just as functional as any other GUI toolkit for Python. Creating your
own widget sets is usually a breeze. Tkinter is not ugly if done
properly. Tkinter apps are ported easily. On and on :)
 
B

Brian

Raghul,

The second link Harlin gave is to the wxPython wiki - it has a variety
of pages with information about the toolkit including a number of
tutorial pages. The "Getting Started" document linked on the main page
is pretty thorough. Once you comfortable with some of the basic
concepts, I'd suggest looking through the wxPython demo code. Find
something interesting in the demo, then look at the associated "Demo
Code" tab to see how it's implemented.

In case you have any questions, the wxpython-users list is a great
source of information for wxpython beginners as well as more advanced
users. It's archived in a few different locations (some are easier to
read or search than others):

Via wxwidgets.org
http://lists.wxwidgets.org/cgi-bin/ezmlm-cgi/11

Via ActiveState
http://aspn.activestate.com/ASPN/Mail/Browse/Threaded/wxPython-users

Via Gmane
http://dir.gmane.org/gmane.comp.python.wxpython
 
F

Fuzzyman

Raghul said:
hi,

I want to learn Wxpython to work in windows.Is there any tutorials
available?Pls specify the link that will be easy to learn for beginers
like me

I'm just learning wxPython, but rather than do it directly I'm using
wax. wax is another layer that sits on top of wxPython and greatly
simplifies using it in practise.

It's written by Hans Nowak and you can find it over at
http://zephyrfalcon.org

The documentation sin't brilliant (but improving), but the examples are
very good. I'm finding it quite easy - but I did learn Tkinter first,
so I'm familiar with concepts like parent frames, event oriented
programming, call backs, packing widgets, etc. YMMV :)

Regards,

Fuzzy
http://www.voidspace.org.uk/python/index.shtml
 
K

Kartic

Raghul said the following on 2/25/2005 12:24 AM:
hi,

I want to learn Wxpython to work in windows.Is there any tutorials
available?Pls specify the link that will be easy to learn for beginers
like me


Raghul - If you have the patience, you can look at the demo source code.
A good thing about the latest wxPython Demo version is that you can
change the demo code in the *running* demo and execute the changed code
to to see the results right away. I love that feature!

So, my suggestion to you is to start reading tutorials. A nice tutorial
to get your feet wet is
http://www-106.ibm.com/developerworks/library/l-wxpy/


Once you feel comfortable with drawing a basic frame with a menu bar and
able to handle events, you can build complex apps using a demo as your
guide. Also, there is a weapon in your arsenal in the form of the
wxWidgets Help Manual that is installed with wxPython. It is geared
towards the wxWidget C++ library but the information can be used to
build wxPython apps rather easily. The Help also annotates differences
between the C++ class and wxPython (and wxPerl) usage where approporiate.

Have fun!
-Kartic
 
B

Bill

Raghul said:
hi,

I want to learn Wxpython to work in windows.Is there any tutorials
available?Pls specify the link that will be easy to learn for beginers
like me

An approach that I find useful is to use an IDE to build the base
application structure, then examine the generated code. This has an
advantage over trying to build something from scratch as a newbie - the
code will run straightaway. wxPython has Boa Constructor and wxGlade
available.

http://sourceforge.net/project/showfiles.php?group_id=1909&release_id=150280

http://wxglade.sourceforge.net/

Some depends on how much you want to learn wxPython vs. just use it. If
you learn more easily building from scratch then the other replies are
pointing you in the right direction.

Bill
 
P

Peter Hansen

Harlin said:
Tkinter is easier to learn. It is better documented IMO. Tkinter is
just as functional as any other GUI toolkit for Python. Creating your
own widget sets is usually a breeze. Tkinter is not ugly if done
properly. Tkinter apps are ported easily. On and on :)

In this forum, no such comment about wxPython from the Tkinter
crowd, nor about Tkinter from the wxPython crowd, is allowed to
stand long without the (friendly) competition pointing out that
they feel the same way about their own favorite.

In my case, I found wxPython easier to learn and ultimately
better documented (for my purposes). I also found it
to be more functional (again, for my purposes) and have had
no difficulties with portability. (Okay, I'll admit that at
this time I haven't actually attempted to run any of my
wxPython stuff on anything except Windows, thus the lack
of difficulties in that area. ;-) )

The best approach in this and similar areas of Python is to
try them both out. It will take only an hour of your time,
and after perusing some sample code and trying to make a
Hello World program in each, you'll pretty quickly choose
the one that will likely turn out to be best for _you_.

-Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,221
Messages
2,571,133
Members
47,748
Latest member
LyleMondra

Latest Threads

Top