Python Newbie

2005-10-05 Thread norm
Hi,

I'm learning Python now and I'm really pleased with everything so far,
however,  at some point I'll want to develop a Windows application (no
other OS at this point).  The question are:
1. What toolkit is best for Windows development?
2. Which toolkits can I exclude from consideration?
3. What toolkit is most popular for Windows development?
4. Are there any impartial reviews of these packages anywhere?

The list includes:
wxPython
pyQt
pyGTk+
pyFLTK
FOX
OpenGL
PythonWin

Thanks,
Norm

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


Re: evaluating gui modules, any experience on tkinter?

2006-12-02 Thread Norm

krishnakant Mane wrote:
> hello all,
> I seam to have noticed this a bit late but it appears to me that
> tkinter is being used very widely for gui development on all platform?
> is that right?
> since fredric lundh has written a very good introduction to tkinter
> (was that just an intro?), I have got keen interest to know the
> following.  may be fredric himself might put some light on these
> points.
> 1. I seriously don't intend to start a flame war but does tkinter
> stand up to the standards of heavy gui development?  can I have an
> entire mdi application working fine with tkinter?  I know wxpython can
> do it and I have heard enough about pyqt, but tkinter seams to be very
> rich in gui objects.
> 2.  as usual I always look out for accessibility when it comes to gui
> design.  will tkinter be useful for blind people?  I mean, are gui
> apps in tkinter accessible on windows?
> 3.  I don't know if I need any thing else as dependencies on my
> windows machine.  I am using python24 and I did not find any thing
> about installation in the introduction to tkinter.  can some one give
> me the process of installing tkinter and all necessary things?
> 4. is tkinter absolutely compatible with windows gui?  does it call on
> native api for native look and feel?  in that case I think
> accessibility issue is automatically solved.
> I am looking out gui library for some serious application development.
>  one is an erp system and the other is a customer relation management
> system.
> so I am confused between wxpython pyqt and now tkinter.
> out of the 3 I only found qt talking extencively about accessibility,
> but did not find a way to install qt in the first place.  I could not
> compile qt nor did I find any run-time dlls for mingw so that I can
> use it out of the box.
> wxpython is the poorest in documentation and tkinter seams to be best at that.
> please give me some advice.
> thanking all.
> Krishnakant.

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


Re: evaluating gui modules, any experience on tkinter?

2006-12-02 Thread Norm
For wxPython, there is a book  "wxPython in Action"  published by
Manning

Cheers

Norm wrote:
> krishnakant Mane wrote:
> > hello all,
> > I seam to have noticed this a bit late but it appears to me that
> > tkinter is being used very widely for gui development on all platform?
> > is that right?
> > since fredric lundh has written a very good introduction to tkinter
> > (was that just an intro?), I have got keen interest to know the
> > following.  may be fredric himself might put some light on these
> > points.
> > 1. I seriously don't intend to start a flame war but does tkinter
> > stand up to the standards of heavy gui development?  can I have an
> > entire mdi application working fine with tkinter?  I know wxpython can
> > do it and I have heard enough about pyqt, but tkinter seams to be very
> > rich in gui objects.
> > 2.  as usual I always look out for accessibility when it comes to gui
> > design.  will tkinter be useful for blind people?  I mean, are gui
> > apps in tkinter accessible on windows?
> > 3.  I don't know if I need any thing else as dependencies on my
> > windows machine.  I am using python24 and I did not find any thing
> > about installation in the introduction to tkinter.  can some one give
> > me the process of installing tkinter and all necessary things?
> > 4. is tkinter absolutely compatible with windows gui?  does it call on
> > native api for native look and feel?  in that case I think
> > accessibility issue is automatically solved.
> > I am looking out gui library for some serious application development.
> >  one is an erp system and the other is a customer relation management
> > system.
> > so I am confused between wxpython pyqt and now tkinter.
> > out of the 3 I only found qt talking extencively about accessibility,
> > but did not find a way to install qt in the first place.  I could not
> > compile qt nor did I find any run-time dlls for mingw so that I can
> > use it out of the box.
> > wxpython is the poorest in documentation and tkinter seams to be best at 
> > that.
> > please give me some advice.
> > thanking all.
> > Krishnakant.

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


Zope review

2007-09-20 Thread Norm
Hi,

without meaning to start a flame war between the various python web
tools, I was wondering if anyone had a review of the status of Zope.
For example, is it being used for new projects or just maintenance?

I really like the look of Zope 3, and the interface/schema pattern for
defining objects looks very useful - but if the general feeling is to
use a different tool since Zope 3 isn't being used in the community
then I would prefer to start with that as I get to grips with Python
again.

My reason for this is that looking at zope.org, the articles section
seems a little old.

thanks,

Norman

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


New Arrival to Python

2005-08-25 Thread Norm Goertzen
Hi Everyone,

I'm totally captivated by Python so far.  I want to develop 
professional-looking Win32 applications with the least effort.

I have many years experience with PowerBuilder, PowerBuilder Foundation 
Class, and SQL Anywhere.  I would really like to leverage as many of 
these skills as possible.

Recently I've been learning C#.NET but am concerned with the anticipated 
longer development times.

If it matters, the IDE I choose should also allow for simpler web 
development.

thanks in advance, Norm


QUESTIONS:

1. What IDE should I use?

2. If Wing IDE is really good, which version Professional or Personal?

3. Can Sybase's SQL Anywhere Studio be fully integrated with Python?

4. How about versions that integrate with MicroSoft's Visual Studio. 
Are they generally considered a smart idea?

5. How does Python compare to PowerBuilder's DATAWINDOW technology?

6. What books are worthwhile?

My O'Reilly's Safari network has these books:

-Core Python Programming; Wesley J. Chun
-Python Developer's Handbook; André Dos Santos  Lessa
-Python Essential Reference, Second Edition; David M Beazley
-Perl To Python Migration; Martin C. Brown
-Programming Python, 2nd Edition; Mark Lutz
-Python Standard Library; Fredrik Lundh
-Python & XML; Fred L. Drake, Jr., Christopher A. Jones
-Python Cookbook; Alex Martelli, David Ascher
-Python Pocket Reference, 2nd Edition; Mark Lutz
-Learning Python; David Ascher, Mark Lutz
-Python Pocket Reference; Mark Lutz
-Python Programming on Win32; Mark Hammond, Andy Robinson
-Python: Visual QuickStart Guide; Chris Fehily
-Python Programming with the Java™ Class Libraries: A Tutorial for 
Building Web and Enterprise Applications with Jython; Richard Hightower
-Python in a Nutshell; Alex Martelli
-Text Processing in Python; David Mertz
-Learning Python, 2nd Edition; David Ascher, Mark Lutz
-Game Programming with Python, Lua, and Ruby; Tom Gutschmidt
-Python Programming for the absolute beginner; MICHAEL DAWSON
-Python Cookbook, 2nd Edition; David Ascher, Alex Martelli, Anna Ravenscroft
-- 
http://mail.python.org/mailman/listinfo/python-list


Considering moving from PowerBuilder to Python

2005-08-31 Thread Norm Goertzen
I've posted a previous question about IDEs and got some good feedback, 
thanks, but it does seem that everyone has their own favourite IDE -- in 
other words, no IDE was repeatedly recommended.

So, is there any data on the popularity of IDEs (most users), or is 
there a chart comparing the most popular versions.

I'M NOT AFRAID TO SPEND SOME MONEY TO GET THE RIGHT IDE (but I don't 
want to change products once I've chosen).

Also, can I use Sybase's SQL Anywhere with Python?

I'm really only interested in programming for Windows XP.  But I also 
really would like to find something very close to Sybase's patented 
datawindow technology -- it's a real time-saver.

Finally, is there any (realistic) way to mix PowerBuilder and Python? 
For instance write a Python shell that calls PowerBuilder methods (or 
vice versa).

Thanks again,
Norm
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Considering moving from PowerBuilder to Python

2005-09-04 Thread Norm Goertzen
Wolfgang Keller wrote:

 >> But I also really would like to find something very close to Sybase's
 >> patented datawindow  technology -- it's a real time-saver.
 >>
 >> BTW: As most readers (including me) probably don't know Powerbuilder:
 >> What is a Datawindow? Some kind of data-aware GUI widget?
 >>
 >> Sincerely,
 >>
 >> Wolfgang Keller

Exceprted from the PowerBuilder Journal...

The DataWindow is nothing more than an array of structures with many 
powerful and fast functions wrapped around it. True, one of the things 
it can do is generate SQL statements based on the data in this structure 
array, but this is by no means its only use. Many PowerBuilder 
developers think of using DataWindows or DataStores only when database 
access is involved. As a result they often create extra, unnecessary 
work. For example, I've often been astonished to see structure arrays 
declared and manipulated manually in PowerBuilder applications. What's 
the point of doing this when you can load your data into a DataStore and 
work with it using fast, precoded DataStore functions? Why loop through 
a structure array to find a particular value when you can use the Find() 
function? DataStores are structure arrays on steroids.

... end of excerpt

I really wish I could find a crystal ball and determine (once and for 
all) the best new language to use.  C#.NET is proving to be a much more 
complex system than I think it needs to be.  In my mind, the best 
language would be one that takes care of EVERYTHING that can safely 
assumed -- I should never have to write another low-level routine. 
Although the comparison is far from perfect, I remember being able to 
roll-out a small database application using R:Base in about 60 minutes 
(including 3 data entry forms and 3 reports).  Nowadays, if I use 
PowerBuilder, it takes me at least 4 hours.  In C#.NET, I'm afraid it 
will take at least 10 hours.

thanks,
Norm
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Smart Debugger (Python)

2008-02-03 Thread Norm Matloff
I have something of an obsession with debuggers, so I was glad to see
this posting.  While we're on the subject, I might as well add my own
small contribution, which I call Xpdb.

Xpdb is available at http://heather.cs.ucdavis.edu/~matloff/xpdb.html 
Quoting from the beginning of that page:

   I tend to use GUI debugging tools with Python, but often find that
   PDB is adequate or even superior. It loads instantly, doesn't take up
   much real estate on the screen, and its ability to set up aliases/macros 
   is very valuable. (Note too Rocky Bernstein's new PYDB, at
   http://sourceforge.net/project/showfiles.php?
   group_id=61395&package_id=175827.)

   However, I missed having a window that displays my source code and my
   current position in it, so I added such a window to PDB, using
   curses, somewhat analogously to the CGDB variant of GDB (and the -tui
   option in GDB). The result, Xpdb, is available at
   http://heather.cs.ucdavis.edu/~matloff/Python/Xpdb/Code/.  It is
   nothing fancy at all, mainly just a source window capability added 
   to PDB (though with a couple of extra new features).  

Norm Matloff

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


remote multiprocessing, shared object

2010-04-07 Thread Norm Matloff
Should be a simple question, but I can't seem to make it work from my
understanding of the docs.

I want to use the multiprocessing module with remote clients, accessing
shared lists.  I gather one is supposed to use register(), but I don't
see exactly how.  I'd like to have the clients read and write the shared
list directly, not via some kind of get() and set() functions.  It's
clear how to do this in a shared-memory setting, but how can one do it
across a network, i.e. with serve_forever(), connect() etc.?

Any help, especially with a concrete example, would be much appreciated.
Thanks.

Norm

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


Re: remote multiprocessing, shared object

2010-04-07 Thread Norm Matloff
Thanks very much, Kushal.

But it seems to me that it doesn't quite work.  After your first client
below creates l and calls append() on it, it would seem that one could
not then assign to it, e.g. do

   l[1] = 8

What I'd like is to write remote multiprocessing code just like threads
code (or for that matter, just like shared-memory multiprocessing code),
i.e. reading and writing shared globals.  Is this even possible?

Norm

On 2010-04-08, Kushal Kumaran  wrote:
> On Thu, Apr 8, 2010 at 3:04 AM, Norm Matloff  wrote:
>> Should be a simple question, but I can't seem to make it work from my
>> understanding of the docs.
>>
>> I want to use the multiprocessing module with remote clients, accessing
>> shared lists.  I gather one is supposed to use register(), but I don't
>> see exactly how.  I'd like to have the clients read and write the shared
>> list directly, not via some kind of get() and set() functions.  It's
>> clear how to do this in a shared-memory setting, but how can one do it
>> across a network, i.e. with serve_forever(), connect() etc.?
>>
>> Any help, especially with a concrete example, would be much appreciated.
>> Thanks.
>>
>
> There's an example in the multiprocessing documentation.
> http://docs.python.org/library/multiprocessing.html#using-a-remote-manager
>
> It creates a shared queue, but it's easy to modify for lists.
>
> For example, here's your shared list server:
> from multiprocessing.managers import BaseManager
> shared_list = []
> class ListManager(BaseManager): pass
> ListManager.register('get_list', callable=lambda:shared_list)
> m = ListManager(address=('', 5), authkey='abracadabra')
> s = m.get_server()
> s.serve_forever()
>
> A client that adds an element to your shared list:
> import random
> from multiprocessing.managers import BaseManager
> class ListManager(BaseManager): pass
> ListManager.register('get_list')
> m = ListManager(address=('localhost', 5), authkey='abracadabra')
> m.connect()
> l = m.get_list()
> l.append(random.random())
>
> And a client that prints out the shared list:
> from multiprocessing.managers import BaseManager
> class ListManager(BaseManager): pass
> ListManager.register('get_list')
> m = ListManager(address=('localhost', 5), authkey='abracadabra')
> m.connect()
> l = m.get_list()
> print str(l)
>
-- 
http://mail.python.org/mailman/listinfo/python-list