PyQt GUI

2009-07-08 Thread Helvin
Hi experts! I'm developing a GUI for a software using PyQT, and need 3D visualization. Should I use PyOpenGL or VTK? I understand that the PyQt package comes with a opengl module. What else would I need? I think I need to download opengl. but how? where? I have VTK and pyVTK installed, but I don't

Re: tough-to-explain Python

2009-07-08 Thread Piet van Oostrum
> Simon Forman (SF) wrote: >SF> Why would you even tell the poor bastards about "+=" before they were >SF> comfortable with (python's style of) function calls, immutable >SF> integers, mutable lists and immutable tuples? >SF> Let them use "x = x + y" until they have enough knowledge to >SF>

Re: tough-to-explain Python

2009-07-08 Thread Gabriel Genellina
En Wed, 08 Jul 2009 04:32:07 -0300, Francesco Bochicchio escribió: I would go with something like this: """ In object oriented programming, the same function or operator can be used to represent different things. This is called overloading. To understand what the operator/function do, we hav

Re: IP Address Function

2009-07-08 Thread Fred Atkinson
On Tue, 07 Jul 2009 22:54:03 -0300, "Gabriel Genellina" wrote: >En Tue, 07 Jul 2009 22:45:24 -0300, Fred Atkinson >escribió: > >> Is there a Python function I can use to get the user's IP >> address so I can display it on his browser? > >There is a long distance between "Python" and "brow

Remoting over SSH

2009-07-08 Thread Hussein B
Hey, I want to perform commands on a remote server over SSH. What do I need? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Check file is locked?

2009-07-08 Thread Tim Golden
Rajat wrote: On Jul 8, 4:57 am, Lawrence D'Oliveiro wrote: In message , Christian Heimes wrote: By the way most operating systems don't lock a file when it's opened for reading or writing or even executed. The general conclusion seems to be that mandatory locking is more trouble than it's wo

Re: tough-to-explain Python

2009-07-08 Thread Francesco Bochicchio
On Jul 7, 10:04 pm, kj wrote: > I'm having a hard time coming up with a reasonable way to explain > certain things to programming novices. > > Consider the following interaction sequence: > > >>> def eggs(some_int, some_list, some_tuple): > > ...     some_int += 2 > ...     some_list += [2] > ...

Re: How to use Python to interface with Web pages?

2009-07-08 Thread alex23
On Jul 8, 1:18 pm, Peter wrote: > I can see the web-page source - it looks to be javascript (to my > untutored eye :-)). > > But how do I enter data and "simulated" mouse presses on a web-page > that I have accessed via a Python program? > [...] > I have (in the past) written some python to scoop

Re: finding most common elements between thousands of multiple arrays.

2009-07-08 Thread Raymond Hettinger
[Scott David Daniels] > def most_frequent(arr, N): >      '''Return the top N (freq, val) elements in arr''' >      counted = frequency(arr) # get an iterator for freq-val pairs >      heap = [] >      # First, just fill up the array with the first N distinct >      for i in range(N): >          tr

<    1   2